phyp: Fix memory leak in phypUUIDTable_Push

@remote_file, allocated by virAsprintf, was not freed and leaked.

Signed-off-by: Zhipeng Lu <lu.zhipeng@zte.com.cn>
This commit is contained in:
ZhiPeng Lu 2017-07-19 08:02:36 +08:00 committed by Michal Privoznik
parent 8c1f25438e
commit 65bacb9181

View 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);