Merge pull request #106 from VoiDeD/spcomp-file-handles

Close file handle on success in pc_opensrc.
This commit is contained in:
David Anderson 2014-07-22 15:43:29 -07:00
commit 59efdafbaf

View File

@ -148,6 +148,7 @@ void *pc_opensrc(char *filename)
src->pos = src->buffer;
src->end = src->buffer + length;
fclose(fp);
return src;
err: