From: Nicolas Williams Date: Thu, 19 Jun 2014 02:11:06 +0000 (-0500) Subject: Remove extra free of testmode X-Git-Tag: jq-1.5rc1~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff5cf0abc748bcfd091b5b90d6ac46ef772f0137;p=jq Remove extra free of testmode I added a jv_free() too many while rebasing @wtlangford's contribution. It could only be triggered by calling `_match_impl` directly. --- diff --git a/builtin.c b/builtin.c index 9ea06a1..7b215e6 100644 --- 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);