qemu-e2k/libcacard
zhanghailiang 5bbebf6228 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: Markus Armbruster <armbru@redhat.com>
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-11-14 12:15:40 +01:00
..
cac.c
cac.h
card_7816.c
card_7816.h
card_7816t.h
event.c
eventt.h
libcacard.pc.in
libcacard.syms
link_test.c
Makefile
vcard_emul_nss.c
vcard_emul_type.c
vcard_emul_type.h
vcard_emul.h
vcard.c
vcard.h
vcardt_internal.h
vcardt.c
vcardt.h
vevent.h
vreader.c
vreader.h
vreadert.h
vscard_common.h
vscclient.c libcacard: fix resource leak 2014-11-14 12:15:40 +01:00