1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

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.
This commit is contained in:
Nicolas Williams
2014-06-18 21:11:06 -05:00
parent 8ff935c01a
commit ff5cf0abc7

View File

@@ -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);