diff --git a/CHANGES b/CHANGES index f7f564b290..2d4ce98c31 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,8 @@ +2.3-405 | 2015-02-02 11:14:24 -0600 + + * Fix memory leak in new split_string* functions. (Jon Siwek) + 2.3-404 | 2015-01-30 14:23:27 -0800 * Update documentation (broken links, outdated tests). (Jon Siwek) diff --git a/VERSION b/VERSION index a47da723dd..57d75d10d0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3-404 +2.3-405 diff --git a/src/strings.bif b/src/strings.bif index 84d6014cff..b8d21cb04a 100644 --- a/src/strings.bif +++ b/src/strings.bif @@ -341,7 +341,7 @@ static int match_prefix(int s_len, const char* s, int t_len, const char* t) VectorVal* do_split_string(StringVal* str_val, RE_Matcher* re, int incl_sep, int max_num_sep) { - VectorVal* rval = new VectorVal(new VectorType(base_type(TYPE_STRING))); + VectorVal* rval = new VectorVal(string_vec); const u_char* s = str_val->Bytes(); int n = str_val->Len(); const u_char* end_of_s = s + n;