gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: fix memory leaks


From: gnunet
Subject: [taler-exchange] branch master updated: fix memory leaks
Date: Sat, 13 Feb 2021 19:21:06 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 66aeb72c fix memory leaks
66aeb72c is described below

commit 66aeb72ca95ed0a89d8c129ea4ec66d8c8a66140
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Feb 13 19:21:04 2021 +0100

    fix memory leaks
---
 src/exchange/taler-exchange-httpd_keys.c | 4 ++--
 src/exchange/taler-exchange-httpd_wire.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_keys.c 
b/src/exchange/taler-exchange-httpd_keys.c
index 910b47a6..9245c812 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -2461,11 +2461,11 @@ TEH_keys_management_get_handler (const struct 
TEH_RequestHandler *rh,
                                          
TALER_EC_GENERIC_JSON_ALLOCATION_FAILURE,
                                          NULL);
     GNUNET_assert (NULL == ksh->management_keys_reply);
-    ksh->management_keys_reply = json_incref (reply);
+    ksh->management_keys_reply = reply;
   }
   else
   {
-    reply = json_incref (ksh->management_keys_reply);
+    reply = ksh->management_keys_reply;
   }
   return TALER_MHD_reply_json (connection,
                                reply,
diff --git a/src/exchange/taler-exchange-httpd_wire.c 
b/src/exchange/taler-exchange-httpd_wire.c
index 8f78f3b6..20fecd49 100644
--- a/src/exchange/taler-exchange-httpd_wire.c
+++ b/src/exchange/taler-exchange-httpd_wire.c
@@ -372,7 +372,7 @@ TEH_handler_wire (const struct TEH_RequestHandler *rh,
                                        
TALER_EC_EXCHANGE_GENERIC_BAD_CONFIGURATION,
                                        NULL);
   return TALER_MHD_reply_json (connection,
-                               json_incref (wsh->wire_reply),
+                               wsh->wire_reply,
                                MHD_HTTP_OK);
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]