projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix for #4553
[oweals/gnunet.git]
/
src
/
jsonapi
/
jsonapi_resource.c
diff --git
a/src/jsonapi/jsonapi_resource.c
b/src/jsonapi/jsonapi_resource.c
index 09217279a21af198e47ca3a7d3d1e71ec580ec03..d1d81148279c3867022ecc2b6952ae03e99d1b85 100644
(file)
--- a/
src/jsonapi/jsonapi_resource.c
+++ b/
src/jsonapi/jsonapi_resource.c
@@
-145,7
+145,7
@@
GNUNET_JSONAPI_resource_add_attr (struct GNUNET_JSONAPI_Resource *resource,
return GNUNET_SYSERR;
if (NULL == resource->attr_obj)
resource->attr_obj = json_object ();
- json_object_set (resource->attr_obj, key, json);
+ json_object_set
_new
(resource->attr_obj, key, json);
return GNUNET_OK;
}