diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-05-15 18:46:35 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-05-15 18:46:35 +0200 |
commit | 168e501991b9506b588e1180527dad9c9662ae0c (patch) | |
tree | d97f3376663571e297a2ef81ddc7d32a37cbfd77 /src/datacache | |
parent | 60635a4887062fbcea6b5a8635a73bdadc20d5bc (diff) | |
download | gnunet-168e501991b9506b588e1180527dad9c9662ae0c.tar.gz gnunet-168e501991b9506b588e1180527dad9c9662ae0c.zip |
-coverity: use after free
Diffstat (limited to 'src/datacache')
-rw-r--r-- | src/datacache/plugin_datacache_sqlite.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c index a7da6b068..bade15479 100644 --- a/src/datacache/plugin_datacache_sqlite.c +++ b/src/datacache/plugin_datacache_sqlite.c | |||
@@ -764,7 +764,8 @@ libgnunet_plugin_datacache_sqlite_done (void *cls) | |||
764 | #if ! WINDOWS || defined(__CYGWIN__) | 764 | #if ! WINDOWS || defined(__CYGWIN__) |
765 | if ((NULL != plugin->fn) && (0 != unlink (plugin->fn))) | 765 | if ((NULL != plugin->fn) && (0 != unlink (plugin->fn))) |
766 | LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "unlink", plugin->fn); | 766 | LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "unlink", plugin->fn); |
767 | GNUNET_free (plugin->fn); | 767 | if (NULL != plugin->fn) |
768 | GNUNET_free (plugin->fn); | ||
768 | #endif | 769 | #endif |
769 | sqlite3_finalize (plugin->insert_stmt); | 770 | sqlite3_finalize (plugin->insert_stmt); |
770 | sqlite3_finalize (plugin->get_count_stmt); | 771 | sqlite3_finalize (plugin->get_count_stmt); |