diff options
author | Bill Nottingham <notting@redhat.com> | 2004-05-04 16:27:20 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-05-04 16:27:20 +0000 |
commit | 8bc12cb8bd7088e5f067fb15687204a1837abdc1 (patch) | |
tree | c8bd7a3596fafaef754e01a70e79cf480585d31d /src/initlog.c | |
parent | 5e212fb145ee5483f7b3134217b9527b18cbd33e (diff) | |
download | initscripts-8bc12cb8bd7088e5f067fb15687204a1837abdc1.tar initscripts-8bc12cb8bd7088e5f067fb15687204a1837abdc1.tar.gz initscripts-8bc12cb8bd7088e5f067fb15687204a1837abdc1.tar.bz2 initscripts-8bc12cb8bd7088e5f067fb15687204a1837abdc1.tar.xz initscripts-8bc12cb8bd7088e5f067fb15687204a1837abdc1.zip |
cleanup fd leaks, mem leaks, other bogosities (#119987, <linux_4ever@yahoo.com>)
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); |