aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/gnunet-service-datastore.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-05-15 18:46:35 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-05-15 18:46:35 +0200
commit168e501991b9506b588e1180527dad9c9662ae0c (patch)
treed97f3376663571e297a2ef81ddc7d32a37cbfd77 /src/datastore/gnunet-service-datastore.c
parent60635a4887062fbcea6b5a8635a73bdadc20d5bc (diff)
downloadgnunet-168e501991b9506b588e1180527dad9c9662ae0c.tar.gz
gnunet-168e501991b9506b588e1180527dad9c9662ae0c.zip
-coverity: use after free
Diffstat (limited to 'src/datastore/gnunet-service-datastore.c')
-rw-r--r--src/datastore/gnunet-service-datastore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c
index 97888ce03..7d07ba3b3 100644
--- a/src/datastore/gnunet-service-datastore.c
+++ b/src/datastore/gnunet-service-datastore.c
@@ -1556,7 +1556,8 @@ 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 GNUNET_free (pfn); 1559 if (NULL != pfn)
1560 GNUNET_free (pfn);
1560 } 1561 }
1561 else 1562 else
1562 { 1563 {
@@ -1566,7 +1567,8 @@ run (void *cls,
1566 5); /* approx. 3% false positives at max use */ 1567 5); /* approx. 3% false positives at max use */
1567 refresh_bf = GNUNET_YES; 1568 refresh_bf = GNUNET_YES;
1568 } 1569 }
1569 GNUNET_free (fn); 1570 if (NULL != fn)
1571 GNUNET_free (fn);
1570 if (NULL == filter) 1572 if (NULL == filter)
1571 { 1573 {
1572 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1574 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,