Fix some leaks

This commit is contained in:
TingPing committed 2014-02-12 10:31:11 -05:00
1 parent ba399eb7f9
commit b17c0276de
6 files changed
+16

No files matched your search

+3
View File
@@ -1659,7 +1659,10 @@ pevent_load (char *filename)
if (fd == -1)
return 1;
if (fstat (fd, &st) != 0)
{
close (fd);
return 1;
}
ibuf = malloc (st.st_size);
read (fd, ibuf, st.st_size);
close (fd);