Skip to content

Commit

Permalink
Close memory leak in regex, from @samuel-coulee, closes #73
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Jun 15, 2018
1 parent 02fdc69 commit 2a558f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ header_string_to_array(StringInfo si)
arr_nelems++;
}

regfree(&regex);
ReleaseTupleDesc(header_tuple_desc);
return construct_array(arr_elems, arr_nelems, elem_type, elem_len, elem_byval, elem_align);
}
Expand Down

0 comments on commit 2a558f9

Please sign in to comment.