diff options
Diffstat (limited to 'src/initlog.c')
-rw-r--r-- | src/initlog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/initlog.c b/src/initlog.c index 4320d9bc..13a376ec 100644 --- a/src/initlog.c +++ b/src/initlog.c @@ -63,6 +63,7 @@ void readConfiguration(char *fname) { data=malloc(sbuf.st_size+1); if (read(fd,data,sbuf.st_size)!=sbuf.st_size) { close(fd); + free(data); return; } close(fd); |