Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix memory leak in regexp code
  • Loading branch information
Sandro Santilli committed Mar 19, 2014
commit a5efc290e563dda062c4fe116fea6aec343f86ad
2 changes: 1 addition & 1 deletion src/backend/regex/regexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ pg_regexec(regex_t *re,
/* clean up */
if (v->pmatch != pmatch && v->pmatch != mat)
FREE(v->pmatch);
for (i = 0; i < n; i++)
for (i = 0; i < v->g->ntree; i++)
{
if (v->subdfas[i] != NULL)
freedfa(v->subdfas[i]);
Expand Down