From: ZhiPeng Lu Date: Wed, 19 Jul 2017 00:02:36 +0000 (+0800) Subject: phyp: Fix memory leak in phypUUIDTable_Push X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=65bacb91811b5ba3bea643b7932c503f99039ea9;p=libvirt.git phyp: Fix memory leak in phypUUIDTable_Push @remote_file, allocated by virAsprintf, was not freed and leaked. Signed-off-by: Zhipeng Lu --- diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index 9121581fec..662e2f7bbf 100644 --- a/src/phyp/phyp_driver.c +++ b/src/phyp/phyp_driver.c @@ -568,6 +568,7 @@ phypUUIDTable_Push(virConnectPtr conn) ret = 0; cleanup: + VIR_FREE(remote_file); if (channel) { libssh2_channel_send_eof(channel); libssh2_channel_wait_eof(channel);