]> xenbits.xensource.com Git - libvirt.git/commitdiff
phyp: Fix memory leak in phypUUIDTable_Push
authorZhiPeng Lu <lu.zhipeng@zte.com.cn>
Wed, 19 Jul 2017 00:02:36 +0000 (08:02 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Jul 2017 14:49:51 +0000 (16:49 +0200)
@remote_file, allocated by virAsprintf, was not freed and leaked.

Signed-off-by: Zhipeng Lu <lu.zhipeng@zte.com.cn>
src/phyp/phyp_driver.c

index 9121581fecb8e55a0573071eddfff06122b54d52..662e2f7bbfb86b66b05c01b04ed9db3eeb5fe434 100644 (file)
@@ -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);