]> granicus.if.org Git - jq/commitdiff
Remove extra free of testmode
authorNicolas Williams <nico@cryptonector.com>
Thu, 19 Jun 2014 02:11:06 +0000 (21:11 -0500)
committerNicolas Williams <nico@cryptonector.com>
Thu, 19 Jun 2014 02:11:06 +0000 (21:11 -0500)
I added a jv_free() too many while rebasing @wtlangford's contribution.
It could only be triggered by calling `_match_impl` directly.

builtin.c

index 9ea06a18abd2c6197d2f4909efbd17eac8ee68a2..7b215e61e7cc12aff5bd86b704864f9f93d26441 100644 (file)
--- a/builtin.c
+++ b/builtin.c
@@ -541,7 +541,6 @@ static jv f_match(jv input, jv regex, jv modifiers, jv testmode) {
   OnigErrorInfo einfo;
   OnigRegion* region;
 
-  jv_free(testmode);
   if (jv_get_kind(input) != JV_KIND_STRING) {
     jv_free(regex);
     jv_free(modifiers);