diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-05-15 19:46:29 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-05-15 19:46:29 +0200 |
commit | 7dc8165b9b94b23cbb5bf23977d1cd7523ecb16e (patch) | |
tree | f518eaea582eb76de1b10bc21e9b28a12fda936f /src/datastore/gnunet-service-datastore.c | |
parent | f7d5c045f7ada74d3227f93631247d04344923ba (diff) | |
download | gnunet-7dc8165b9b94b23cbb5bf23977d1cd7523ecb16e.tar.gz gnunet-7dc8165b9b94b23cbb5bf23977d1cd7523ecb16e.zip |
Revert "-coverity: use after free"
This reverts commit 168e501991b9506b588e1180527dad9c9662ae0c.
Diffstat (limited to 'src/datastore/gnunet-service-datastore.c')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 7d07ba3b3..97888ce03 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -1556,8 +1556,7 @@ run (void *cls, | |||
1556 | 5); /* approx. 3% false positives at max use */ | 1556 | 5); /* approx. 3% false positives at max use */ |
1557 | refresh_bf = GNUNET_YES; | 1557 | refresh_bf = GNUNET_YES; |
1558 | } | 1558 | } |
1559 | if (NULL != pfn) | 1559 | GNUNET_free (pfn); |
1560 | GNUNET_free (pfn); | ||
1561 | } | 1560 | } |
1562 | else | 1561 | else |
1563 | { | 1562 | { |
@@ -1567,8 +1566,7 @@ run (void *cls, | |||
1567 | 5); /* approx. 3% false positives at max use */ | 1566 | 5); /* approx. 3% false positives at max use */ |
1568 | refresh_bf = GNUNET_YES; | 1567 | refresh_bf = GNUNET_YES; |
1569 | } | 1568 | } |
1570 | if (NULL != fn) | 1569 | GNUNET_free (fn); |
1571 | GNUNET_free (fn); | ||
1572 | if (NULL == filter) | 1570 | if (NULL == filter) |
1573 | { | 1571 | { |
1574 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1572 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |