mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
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:
parent
8c1f25438e
commit
65bacb9181
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user