virStoragePoolDefParseSource: Don't leak @port

In a1c453dc088, 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:
Michal Privoznik 2019-03-19 17:35:21 +01:00
parent 66bb371e8e
commit 181b68ad9d

View File

@ -588,6 +588,7 @@ virStoragePoolDefParseSource(xmlXPathContextPtr ctxt,
goto cleanup;
}
}
VIR_FREE(port);
}
}