Permalink
Browse files

fixed memory leak

  • Loading branch information...
1 parent 7346db6 commit 5d5c4a2e29fb03bbb0015de2a44c6dfb4df999a2 scythe committed May 2, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 dreg.c
View
@@ -215,6 +215,7 @@ regex **collapse(regex **operands, char type, int len, int *total) {
if(*total == -1) { /* nothing to collapse */
free(subtrees);
+ free(sublens);
*total = len;
return operands;
}

0 comments on commit 5d5c4a2

Please sign in to comment.