[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] branch master updated: fix memory leak
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] branch master updated: fix memory leak |
Date: |
Fri, 29 Jun 2018 15:28:19 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new bfdd051 fix memory leak
bfdd051 is described below
commit bfdd05196b4a6700eef96934fc10f87105a732c6
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jun 29 15:28:05 2018 +0200
fix memory leak
---
src/exchange-lib/testing_api_cmd_exec_auditor-sign.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/exchange-lib/testing_api_cmd_exec_auditor-sign.c
b/src/exchange-lib/testing_api_cmd_exec_auditor-sign.c
index e589dbc..feebaae 100644
--- a/src/exchange-lib/testing_api_cmd_exec_auditor-sign.c
+++ b/src/exchange-lib/testing_api_cmd_exec_auditor-sign.c
@@ -47,6 +47,10 @@ struct AuditorSignState
*/
const char *config_filename;
+ /**
+ * File name of signed blob.
+ */
+ char *signed_keys_out;
};
@@ -66,7 +70,6 @@ auditor_sign_run (void *cls,
struct GNUNET_CONFIGURATION_Handle *cfg;
char *test_home_dir;
- char *signed_keys_out;
char *exchange_master_pub;
struct GNUNET_TIME_Absolute now;
@@ -96,7 +99,7 @@ auditor_sign_run (void *cls,
now = GNUNET_TIME_absolute_get ();
GNUNET_asprintf
- (&signed_keys_out,
+ (&ass->signed_keys_out,
"%s/.local/share/taler/auditors/auditor-%llu.out",
test_home_dir,
(unsigned long long) now.abs_value_us);
@@ -129,7 +132,7 @@ auditor_sign_run (void *cls,
"-u", "http://auditor/",
"-m", exchange_master_pub,
"-r", "auditor.in",
- "-o", signed_keys_out,
+ "-o", ass->signed_keys_out,
NULL);
if (NULL == ass->auditor_sign_proc)
@@ -163,6 +166,7 @@ auditor_sign_cleanup (void *cls,
GNUNET_OS_process_destroy (ass->auditor_sign_proc);
ass->auditor_sign_proc = NULL;
}
+ GNUNET_free_non_null (ass->signed_keys_out);
GNUNET_free (ass);
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-exchange] branch master updated: fix memory leak,
gnunet <=