aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/plugin_datacache_sqlite.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-12-19 18:27:51 +0000
committerChristian Grothoff <christian@grothoff.org>2010-12-19 18:27:51 +0000
commit6652156e7d7083205b68d5fc73a085b88e662d96 (patch)
tree546b23e0ae412c947da65df4a7ec0b8f73be0d92 /src/datacache/plugin_datacache_sqlite.c
parent15de71a29f22caee6b15956b162e1e5a0f5f4f3e (diff)
downloadgnunet-6652156e7d7083205b68d5fc73a085b88e662d96.tar.gz
gnunet-6652156e7d7083205b68d5fc73a085b88e662d96.zip
mantis 1627
Diffstat (limited to 'src/datacache/plugin_datacache_sqlite.c')
-rw-r--r--src/datacache/plugin_datacache_sqlite.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c
index b5d0ea715..e3f0dcb24 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -424,12 +424,21 @@ libgnunet_plugin_datacache_sqlite_done (void *cls)
424 struct GNUNET_DATACACHE_PluginFunctions *api = cls; 424 struct GNUNET_DATACACHE_PluginFunctions *api = cls;
425 struct Plugin *plugin = api->cls; 425 struct Plugin *plugin = api->cls;
426 426
427#if !WINDOWS || defined(__CYGWIN__)
427 if (0 != UNLINK (plugin->fn)) 428 if (0 != UNLINK (plugin->fn))
428 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, 429 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
429 "unlink", 430 "unlink",
430 plugin->fn); 431 plugin->fn);
431 GNUNET_free (plugin->fn); 432 GNUNET_free (plugin->fn);
433#endif
432 sqlite3_close (plugin->dbh); 434 sqlite3_close (plugin->dbh);
435#if WINDOWS && !defined(__CYGWIN__)
436 if (0 != UNLINK (plugin->fn))
437 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
438 "unlink",
439 plugin->fn);
440 GNUNET_free (plugin->fn);
441#endif
433 GNUNET_free (plugin); 442 GNUNET_free (plugin);
434 GNUNET_free (api); 443 GNUNET_free (api);
435 return NULL; 444 return NULL;