aboutsummaryrefslogtreecommitdiff
path: root/src/auditordb
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditordb')
-rw-r--r--src/auditordb/test_auditordb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c
index 3e8b191d7..bc23f1160 100644
--- a/src/auditordb/test_auditordb.c
+++ b/src/auditordb/test_auditordb.c
@@ -107,7 +107,7 @@ run (void *cls)
plugin->create_tables (plugin->cls))
{
result = 77;
- goto drop;
+ goto unload;
}
if (NULL ==
(session = plugin->get_session (plugin->cls)))
@@ -717,10 +717,12 @@ run (void *cls)
result = 0;
drop:
- plugin->rollback (plugin->cls,
- session);
+ if (NULL != session)
+ plugin->rollback (plugin->cls,
+ session);
GNUNET_break (GNUNET_OK ==
plugin->drop_tables (plugin->cls));
+ unload:
TALER_AUDITORDB_plugin_unload (plugin);
plugin = NULL;
}