mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
nodedev: Free the right pointers when getting WWNs fails
This commit is contained in:
parent
b31ef77313
commit
47c74e8264
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user