projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix JSON reference counting errors
[trust_router.git]
/
mon
/
mon_req_decode.c
diff --git
a/mon/mon_req_decode.c
b/mon/mon_req_decode.c
index
0c7e7f4
..
21bb64b
100644
(file)
--- a/
mon/mon_req_decode.c
+++ b/
mon/mon_req_decode.c
@@
-126,7
+126,7
@@
MON_REQ *mon_req_parse(TALLOC_CTX *mem_ctx, const char *input)
*
* (options are optional)
*
*
* (options are optional)
*
- * Caller must free the return value with
MON_REQ
_free().
+ * Caller must free the return value with
mon_req
_free().
*
* @param mem_ctx talloc context for the returned struct
* @param req_json reference to JSON request object
*
* @param mem_ctx talloc context for the returned struct
* @param req_json reference to JSON request object
@@
-171,8
+171,6
@@
MON_REQ *mon_req_decode(TALLOC_CTX *mem_ctx, json_t *req_json)
cleanup:
talloc_free(tmp_ctx);
cleanup:
talloc_free(tmp_ctx);
- if (req_json)
- json_decref(req_json);
return req;
}
return req;
}