Skip to content
Snippets Groups Projects
Commit 50fc1c5d authored by zhanghailiang's avatar zhanghailiang Committed by Paolo Bonzini
Browse files

libcacard: fix resource leak


In function connect_to_qemu(), getaddrinfo() will allocate memory
that is stored into server, it should be freed by using freeaddrinfo()
before connect_to_qemu() return.

Cc: qemu-stable@nongnu.org
Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
Signed-off-by: default avatarzhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 43d84715
No related branches found
Tags xorg-server-1.19.99.903
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment