LVM2 ./WHATS_NEW lib/format_text/export.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-11-29 12:19:58
Modified files:
. : WHATS_NEW
lib/format_text: export.c
Log message:
Fix memory leak in error path
Nicely hidden memory leak in outf macro error path. This macro is using out_text() and does automagical return_0. That would leak tag_buffer allocated memory.
As there was same code for tags output - create _out_tags() function.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1812&r2=1.1813
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/export.c.diff?cvsroot=lvm2&r1=1.79&r2=1.80
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.78 - ==================================== + Fix memory leak in outf macro error path of _print_vg/lv/pvs/segment(). Fix missing reset of vg pointer after vg_release() in _vg_read_by_vgid(). Fix test for empty system_dir string in _init_backup(). Certain lvconvert invocations are now required to be done in two steps.
lib/format_text/export.c +27 -29
107 lines not on this page · raw message