diff options
| -rw-r--r-- | zetsubou/main.c | 1 | ||||
| -rw-r--r-- | zetsubou/tpl.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/zetsubou/main.c b/zetsubou/main.c index 6417ef0..cd410bf 100644 --- a/zetsubou/main.c +++ b/zetsubou/main.c @@ -56,6 +56,7 @@ int main(int argc, char *argv[]) else bad_args(argv[0]); ret = TPL_ConvertToGD(tplbuf, tplsize, basename, outfmt); + free(basename); if(ret < 0) { printf("Error converting from TPL.\n"); exit(1); diff --git a/zetsubou/tpl.c b/zetsubou/tpl.c index 874db87..535e0ff 100644 --- a/zetsubou/tpl.c +++ b/zetsubou/tpl.c @@ -819,6 +819,7 @@ int TPL_ConvertToGD(u8* tplbuf, u32 tplsize, char basename[], u32 format) fwrite(&h.unpacked, 1, 1, tplmeta); fclose(tplmeta); } + free(outname); return 0; } @@ -1132,6 +1133,7 @@ int TPL_ConvertToBMP(u8* tplbuf, u32 tplsize, char basename[]) fwrite(&h.unpacked, 1, 1, out); fclose(out); } + free(outname); return 0; } |
