mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-08-15 01:50:16 +03:00
virStoragePoolDefParseSource: Don't leak @port
In a1c453dc08
, during VIR_AUTOFREE() rewrite this wasn't done
properly. @port might be leaked because it's allocated in a for()
loop.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@ -588,6 +588,7 @@ virStoragePoolDefParseSource(xmlXPathContextPtr ctxt,
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
VIR_FREE(port);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user