diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-05-23 13:24:34 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-05-24 00:45:57 +0400 |
commit | 124fe7fb1b7a1db8cb2ebb9edae84716ffaf37ce (patch) | |
tree | 1e7c634cb81b4184c5accad9609bf596e93bc74b /libcacard/vscclient.c | |
parent | d357e3d9d24c8a9e99c994c3c1ee5acb32484a3d (diff) | |
download | qemu-124fe7fb1b7a1db8cb2ebb9edae84716ffaf37ce.zip qemu-124fe7fb1b7a1db8cb2ebb9edae84716ffaf37ce.tar.gz qemu-124fe7fb1b7a1db8cb2ebb9edae84716ffaf37ce.tar.bz2 |
libcacard: Plug memory leaks around vreader_get_reader_list()
Spotted by Coverity.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'libcacard/vscclient.c')
-rw-r--r-- | libcacard/vscclient.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcacard/vscclient.c b/libcacard/vscclient.c index 29f4958..f2a753a 100644 --- a/libcacard/vscclient.c +++ b/libcacard/vscclient.c @@ -570,6 +570,7 @@ do_command(GIOChannel *source, "CARD_PRESENT" : " ", vreader_get_name(reader)); } + vreader_list_delete(list); } else if (*string != 0) { printf("valid commands:\n"); printf("insert [reader_id]\n"); |