This is the mail archive of the
lvm2-cvs@sourceware.org
mailing list for the LVM2 project.
LVM2/daemons/common daemon-server.c
- From: mornfall at sourceware dot org
- To: lvm-devel at redhat dot com, lvm2-cvs at sourceware dot org
- Date: 20 Jul 2011 18:23:34 -0000
- Subject: LVM2/daemons/common daemon-server.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall@sourceware.org 2011-07-20 18:23:34
Modified files:
daemons/common : daemon-server.c
Log message:
Fix two small (but eventually unbounded) leaks in daemon-server.c.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/common/daemon-server.c.diff?cvsroot=lvm2&r1=1.8&r2=1.9
--- LVM2/daemons/common/daemon-server.c 2011/07/18 14:46:54 1.8
+++ LVM2/daemons/common/daemon-server.c 2011/07/20 18:23:33 1.9
@@ -253,6 +253,7 @@
if (!res.buffer) {
write_config_node(res.cft->root, buffer_line, &res);
buffer_rewrite(&res.buffer, "%s\n\n", NULL);
+ destroy_config_tree(res.cft);
}
write_buffer(b->client.socket_fd, res.buffer, strlen(res.buffer));
@@ -261,6 +262,7 @@
}
fail:
/* TODO what should we really do here? */
+ free(baton);
return NULL;
}