From: Jiri Denemark Date: Tue, 17 Aug 2010 15:49:12 +0000 (+0200) Subject: nodedev: Free the right pointers when getting WWNs fails X-Git-Tag: v0.8.4~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47c74e8264ba4ddbee5dd93be6cc21dd87539bf3;p=thirdparty%2Flibvirt.git nodedev: Free the right pointers when getting WWNs fails --- diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c index 6583570d05..0b080ce70d 100644 --- a/src/conf/node_device_conf.c +++ b/src/conf/node_device_conf.c @@ -1283,8 +1283,8 @@ virNodeDeviceGetWWNs(virNodeDeviceDefPtr def, ret = -1; } else if (*wwnn == NULL || *wwpn == NULL) { /* Free the other one, if allocated... */ - VIR_FREE(wwnn); - VIR_FREE(wwpn); + VIR_FREE(*wwnn); + VIR_FREE(*wwpn); ret = -1; virReportOOMError(); }