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:
@@ -541,7 +541,6 @@ static jv f_match(jv input, jv regex, jv modifiers, jv testmode) {
|
|||||||
OnigErrorInfo einfo;
|
OnigErrorInfo einfo;
|
||||||
OnigRegion* region;
|
OnigRegion* region;
|
||||||
|
|
||||||
jv_free(testmode);
|
|
||||||
if (jv_get_kind(input) != JV_KIND_STRING) {
|
if (jv_get_kind(input) != JV_KIND_STRING) {
|
||||||
jv_free(regex);
|
jv_free(regex);
|
||||||
jv_free(modifiers);
|
jv_free(modifiers);
|
||||||
|
|||||||
Reference in New Issue
Block a user