This commit is contained in:
Christian Grothoff 2021-11-24 00:25:17 +01:00
parent 4c628aba80
commit ef29658161
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,7 @@ run (void *cls,
fprintf (stderr,
"Failed to initialize database.\n");
TALER_EXCHANGEDB_plugin_unload (plugin);
plugin = NULL;
global_ret = EXIT_NOPERMISSION;
return;
}
@ -97,6 +98,7 @@ run (void *cls,
fprintf (stderr,
"Failed to prepare database.\n");
TALER_EXCHANGEDB_plugin_unload (plugin);
plugin = NULL;
global_ret = EXIT_NOPERMISSION;
return;
}
@ -119,6 +121,7 @@ run (void *cls,
}
}
TALER_EXCHANGEDB_plugin_unload (plugin);
plugin = NULL;
}

View File

@ -168,6 +168,7 @@ postgres_drop_tables (void *cls)
if (NULL != pg->conn)
{
GNUNET_PQ_disconnect (pg->conn);
pg->conn = NULL;
pg->init = false;
}
return GNUNET_OK;