Commit 3825ab82 by Rudolf

Fix memory leakage

parent f47bf905
Showing with 1 additions and 0 deletions
...@@ -54,6 +54,7 @@ static int read_entry(struct BIT_BUFFER *bitbuf, struct tree *parent) ...@@ -54,6 +54,7 @@ static int read_entry(struct BIT_BUFFER *bitbuf, struct tree *parent)
int *c = bb_readbyte(bitbuf); int *c = bb_readbyte(bitbuf);
parent->ch = *c; parent->ch = *c;
printf("Found from header %c\n", *c); printf("Found from header %c\n", *c);
free(c);
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment