[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] LVM2/lib/cache lvmcache.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mbroz sourceware org	2009-04-24 12:03:56

Modified files:
	lib/cache      : lvmcache.c 

Log message:
	Fix pool leak in lvmcache_read_vg error path.
	(Introduced in previous patches.)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/cache/lvmcache.c.diff?cvsroot=lvm2&r1=1.64&r2=1.65

--- LVM2/lib/cache/lvmcache.c	2009/02/17 18:56:41	1.64
+++ LVM2/lib/cache/lvmcache.c	2009/04/24 12:03:55	1.65
@@ -522,6 +522,7 @@
 	if (!(vg = import_vg_from_buffer(vginfo->vgmetadata, fid)) ||
 	    !vg_validate(vg)) {
 		_free_cached_vgmetadata(vginfo);
+		vg_release(vg);
 		return_NULL;
 	}
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]