aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_sqlite.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/plugin_datastore_sqlite.c
parent60635a4887062fbcea6b5a8635a73bdadc20d5bc (diff)
downloadgnunet-168e501991b9506b588e1180527dad9c9662ae0c.tar.gz
gnunet-168e501991b9506b588e1180527dad9c9662ae0c.zip
-coverity: use after free
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r--src/datastore/plugin_datastore_sqlite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c
index f58955b7b..40f955312 100644
--- a/src/datastore/plugin_datastore_sqlite.c
+++ b/src/datastore/plugin_datastore_sqlite.c
@@ -729,7 +729,8 @@ sqlite_plugin_put (void *cls,
729 } 729 }
730 GNUNET_SQ_reset (plugin->dbh, stmt); 730 GNUNET_SQ_reset (plugin->dbh, stmt);
731 cont (cont_cls, key, size, ret, msg); 731 cont (cont_cls, key, size, ret, msg);
732 GNUNET_free (msg); 732 if (NULL != msg)
733 GNUNET_free (msg);
733} 734}
734 735
735 736