Commit Graph
4 Commits
Author SHA1 Message Date
Lioncash 366de9f248 Fix a another memory leak in etctool.
imgdec = (unsigned char*) malloc(expandedwidth*expandedheight*3);
is called before the if statement "if((f=fopen(dstfile,"wb")))"

If the file 'f' failed in the if statement, it would never be freed (since "free(imgdec)" was within that if block.
2013-02-02 13:18:23 -05:00
Lioncash 36c82b5d18 Resource leak fix, also cleanup. 2013-02-02 01:36:53 -05:00
Henrik Rydgard 4fb4124e0a Fixes from fixing the mac port 2012-07-18 12:03:51 +02:00
Henrik Rydgard 22dfdd2832 Initial commit 2012-03-24 23:39:19 +01:00