mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-02 18:23:13 +00:00
Fix some leaks
This commit is contained in:
1 parent
ba399eb7f9
commit
b17c0276de
6 files changed
+16
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user