[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: fix leaks
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: fix leaks |
Date: |
Sun, 28 Feb 2021 21:03:53 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new bd1fe3b fix leaks
bd1fe3b is described below
commit bd1fe3be962194bc0898047deb08844e5ce2fe65
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Feb 28 21:03:51 2021 +0100
fix leaks
---
src/reducer/anastasis_api_backup_redux.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/reducer/anastasis_api_backup_redux.c
b/src/reducer/anastasis_api_backup_redux.c
index 691abd7..8b72696 100644
--- a/src/reducer/anastasis_api_backup_redux.c
+++ b/src/reducer/anastasis_api_backup_redux.c
@@ -1293,6 +1293,7 @@ upload_cancel_cb (void *cls)
ANASTASIS_secret_share_cancel (uc->ss);
uc->ss = NULL;
}
+ json_decref (uc->state);
GNUNET_free (uc);
}
@@ -2167,10 +2168,10 @@ enter_secret (json_t *state,
return NULL;
}
GNUNET_assert (0 ==
- json_object_set (state,
- "core_secret",
- GNUNET_JSON_from_data (secret,
- secret_size)));
+ json_object_set_new (state,
+ "core_secret",
+ GNUNET_JSON_from_data (secret,
+ secret_size)));
GNUNET_JSON_parse_free (spec);
return upload (state,
cb,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.