diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-28 19:58:20 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-28 19:58:20 +0100 |
commit | 554ee3d4da95a9fcfd408f1085586d0b6d1834f4 (patch) | |
tree | 0a157dd6545e7fc192e29f409365828e9e205d51 /src/mint/taler-mint-httpd_db.c | |
parent | 2e0e30291c4e490389f85bbd4973374f0adf22f4 (diff) | |
download | exchange-554ee3d4da95a9fcfd408f1085586d0b6d1834f4.tar.xz |
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.c | 8 |
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; } |