multipath-tools/libmultipath config.c
CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: [email protected] 2007-07-13 18:30:24
Modified files:
libmultipath : config.c
Log message:
Pull in fix from upstream
libmultipath/config.c +5 -3
@@ -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 ;