diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-24 17:06:16 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-10-24 17:06:16 +0900 |
commit | aec54ad722ce1cedb763a90196aa25c28c26698a (patch) | |
tree | 83c54e3666e6b9828c6d1a0c543a01babeade97d /src/namestore | |
parent | 14503eee785f77881c6479501d65a79f2b8c18e5 (diff) | |
download | gnunet-aec54ad722ce1cedb763a90196aa25c28c26698a.tar.gz gnunet-aec54ad722ce1cedb763a90196aa25c28c26698a.zip |
-fix leak
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/plugin_rest_namestore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c index e02b1fde2..1f2f58097 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c | |||
@@ -336,7 +336,7 @@ do_error (void *cls) | |||
336 | const char* emsg; | 336 | const char* emsg; |
337 | int response_code; | 337 | int response_code; |
338 | 338 | ||
339 | emsg = GNUNET_strdup (GNUNET_ErrorCode_get_hint (handle->ec)); | 339 | emsg = GNUNET_ErrorCode_get_hint (handle->ec); |
340 | json_object_set_new (json_error, "error", json_string (emsg)); | 340 | json_object_set_new (json_error, "error", json_string (emsg)); |
341 | json_object_set_new (json_error, "error_code", json_integer (handle->ec)); | 341 | json_object_set_new (json_error, "error_code", json_integer (handle->ec)); |
342 | response_code = GNUNET_ErrorCode_get_http_status (handle->ec); | 342 | response_code = GNUNET_ErrorCode_get_http_status (handle->ec); |