hrydgard/native — pull request #43 by lioncash (2013-02-02 18:19:40+00:00)
Title: Another memory leak fixed 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.