aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_db.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-28 19:58:20 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-28 19:58:20 +0100
commit554ee3d4da95a9fcfd408f1085586d0b6d1834f4 (patch)
tree0a157dd6545e7fc192e29f409365828e9e205d51 /src/mint/taler-mint-httpd_db.c
parent2e0e30291c4e490389f85bbd4973374f0adf22f4 (diff)
cleaning up some memory management issues in response generation
Diffstat (limited to 'src/mint/taler-mint-httpd_db.c')
-rw-r--r--src/mint/taler-mint-httpd_db.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_db.c b/src/mint/taler-mint-httpd_db.c
index 6949da22d..34ca6c775 100644
--- a/src/mint/taler-mint-httpd_db.c
+++ b/src/mint/taler-mint-httpd_db.c
@@ -1293,7 +1293,9 @@ TALER_MINT_db_execute_refresh_link (struct MHD_Connection *connection,
json_object_set_new (root, "secret_enc",
TALER_JSON_from_data (&shared_secret_enc,
sizeof (struct GNUNET_HashCode)));
- return TALER_MINT_reply_json (connection,
- root,
- MHD_HTTP_OK);
+ res = TALER_MINT_reply_json (connection,
+ root,
+ MHD_HTTP_OK);
+ json_decref (root);
+ return res;
}