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/datacache | |
parent | f7d5c045f7ada74d3227f93631247d04344923ba (diff) | |
download | gnunet-7dc8165b9b94b23cbb5bf23977d1cd7523ecb16e.tar.gz gnunet-7dc8165b9b94b23cbb5bf23977d1cd7523ecb16e.zip |
Revert "-coverity: use after free"
This reverts commit 168e501991b9506b588e1180527dad9c9662ae0c.
Diffstat (limited to 'src/datacache')
-rw-r--r-- | src/datacache/plugin_datacache_sqlite.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c index bade15479..a7da6b068 100644 --- a/src/datacache/plugin_datacache_sqlite.c +++ b/src/datacache/plugin_datacache_sqlite.c | |||
@@ -764,8 +764,7 @@ 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 | if (NULL != plugin->fn) | 767 | GNUNET_free (plugin->fn); |
768 | GNUNET_free (plugin->fn); | ||
769 | #endif | 768 | #endif |
770 | sqlite3_finalize (plugin->insert_stmt); | 769 | sqlite3_finalize (plugin->insert_stmt); |
771 | sqlite3_finalize (plugin->get_count_stmt); | 770 | sqlite3_finalize (plugin->get_count_stmt); |