Close file handle on success in pc_opensrc.

This commit is contained in:
Ryan Stecker 2014-07-22 17:33:26 -05:00
parent b6d8cb9fcf
commit f3671e55db

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: