We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 923c3c6 commit 21a63cbCopy full SHA for 21a63cb
apache2/msc_json.c
@@ -306,10 +306,14 @@ int json_complete(modsec_rec *msr, char **error_msg) {
306
}
307
308
/**
309
- * Frees the resources used for XML parsing.
+ * Frees the resources used for JSON parsing.
310
*/
311
apr_status_t json_cleanup(modsec_rec *msr) {
312
msr_log(msr, 4, "JSON: Cleaning up JSON results");
313
+ if (msr->json->handle != NULL) {
314
+ yajl_free(msr->json->handle);
315
+ msr->json->handle = NULL;
316
+ }
317
318
return 1;
319
0 commit comments