From ff5cf0abc748bcfd091b5b90d6ac46ef772f0137 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 18 Jun 2014 21:11:06 -0500 Subject: [PATCH] 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. --- builtin.c | 1 - 1 file changed, 1 deletion(-) diff --git a/builtin.c b/builtin.c index 9ea06a18..7b215e61 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);