* multipath-tools/libmultipath config.c
@ 2007-07-13 18:30 bmarzins
0 siblings, 0 replies; only message in thread
From: bmarzins @ 2007-07-13 18:30 UTC (permalink / raw)
To: dm-cvs, dm-devel
CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: bmarzins@sourceware.org 2007-07-13 18:30:24
Modified files:
libmultipath : config.c
Log message:
Pull in fix from upstream
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/config.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.19.2.1&r2=1.19.2.2
--- multipath-tools/libmultipath/config.c 2007/01/10 20:08:08 1.19.2.1
+++ multipath-tools/libmultipath/config.c 2007/07/13 18:30:24 1.19.2.2
@@ -58,9 +58,11 @@
if ((!hwe->vendor || !regexec(&vre, vendor, 0, NULL, 0)) &&
(!hwe->product || !regexec(&pre, product, 0, NULL, 0)))
ret = hwe;
-
- regfree(&pre);
- regfree(&vre);
+
+ if (hwe->product)
+ regfree(&pre);
+ if (hwe->vendor)
+ regfree(&vre);
if (ret)
break;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-13 18:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-13 18:30 multipath-tools/libmultipath config.c bmarzins
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.