[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-twister] branch master updated: free stringified JSO
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-twister] branch master updated: free stringified JSON body only if non NULL. |
Date: |
Wed, 21 Mar 2018 11:44:55 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository twister.
The following commit(s) were added to refs/heads/master by this push:
new fdd085b free stringified JSON body only if non NULL.
fdd085b is described below
commit fdd085b72c863359dffe9e2a458bf9ddc0489106
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Mar 21 11:43:17 2018 +0100
free stringified JSON body only if non NULL.
---
src/twister/taler-twister-service.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/twister/taler-twister-service.c
b/src/twister/taler-twister-service.c
index 6104fda..8eda2a6 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -1137,8 +1137,6 @@ create_response (void *cls,
upload_data,
*upload_data_size);
- /* Note, each request starts with fresh and
- * equal-to-zero io_len (?). */
hr->io_len += *upload_data_size;
*upload_data_size = 0;
return MHD_YES;
@@ -1390,7 +1388,7 @@ create_response (void *cls,
body,
MHD_RESPMEM_MUST_COPY);
- GNUNET_free (body);
+ GNUNET_free_non_null (body);
for (header = hr->header_head;
NULL != header;
header = header->next)
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-twister] branch master updated: free stringified JSON body only if non NULL.,
gnunet <=