From 8bc12cb8bd7088e5f067fb15687204a1837abdc1 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 4 May 2004 16:27:20 +0000 Subject: cleanup fd leaks, mem leaks, other bogosities (#119987, ) --- src/initlog.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/initlog.c') 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); -- cgit v1.2.1