Skip to content

Commit

Permalink
Forgot to clear string_info at free
Browse files Browse the repository at this point in the history
  • Loading branch information
jbf committed Sep 13, 2011
1 parent 7320e6f commit 0b2ca76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ast-walker/stringstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ int stringstream_flush(STREAM *stream) {
int stringstream_close(STREAM *stream) {
free_malloced(((string_info *)stream->payload)->str);
free_malloced(stream->payload);
stream->payload = NULL;
return 1;
}

0 comments on commit 0b2ca76

Please sign in to comment.