aboutsummaryrefslogtreecommitdiffstats
path: root/src/initlog.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-05-04 16:27:20 +0000
committerBill Nottingham <notting@redhat.com>2004-05-04 16:27:20 +0000
commit8bc12cb8bd7088e5f067fb15687204a1837abdc1 (patch)
treec8bd7a3596fafaef754e01a70e79cf480585d31d /src/initlog.c
parent5e212fb145ee5483f7b3134217b9527b18cbd33e (diff)
downloadinitscripts-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.c1
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);