aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-delete-instances-ID.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-delete-instances-ID.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-instances-ID.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/backend/taler-merchant-httpd_private-delete-instances-ID.c b/src/backend/taler-merchant-httpd_private-delete-instances-ID.c
index afcea0c9..9926d0b3 100644
--- a/src/backend/taler-merchant-httpd_private-delete-instances-ID.c
+++ b/src/backend/taler-merchant-httpd_private-delete-instances-ID.c
@@ -45,7 +45,7 @@ delete_instances_ID (struct TMH_MerchantInstance *mi,
if (NULL == purge_s)
purge_s = "no";
purge = (0 == strcasecmp (purge_s,
- "yes"));
+ "yes"));
if (purge)
qs = TMH_db->purge_instance (TMH_db->cls,
mi->settings.id);
@@ -74,12 +74,6 @@ delete_instances_ID (struct TMH_MerchantInstance *mi,
: "Private key unknown");
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
TMH_reload_instances (mi->settings.id);
- if (purge)
- TMH_instance_free_cb (NULL,
- &mi->h_instance,
- mi);
- else
- mi->deleted = true;
return TALER_MHD_reply_static (connection,
MHD_HTTP_NO_CONTENT,
NULL,