wrap_jsonfree() called json_object_put() on the response-body buffer
base, which is the JSON string returned by
json_object_to_json_string_ext(), not a struct json_object. The root
object is already passed in as the callback argument; release only
that.
}
static void
-wrap_xmlfree(isc_buffer_t *buffer, void *arg) {
- UNUSED(arg);
-
+wrap_xmlfree(isc_buffer_t *buffer, void *arg ISC_ATTR_UNUSED) {
xmlFree(isc_buffer_base(buffer));
}
} while (0)
static void
-wrap_jsonfree(isc_buffer_t *buffer, void *arg) {
- json_object_put(isc_buffer_base(buffer));
+wrap_jsonfree(isc_buffer_t *buffer ISC_ATTR_UNUSED, void *arg) {
if (arg != NULL) {
json_object_put((json_object *)arg);
}