nfctype4: Fix a memory leak in t4_readbin_cc
authorLars Poeschel <poeschel@lemonage.de>
Tue, 27 Aug 2013 12:25:25 +0000 (14:25 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 27 Aug 2013 13:52:12 +0000 (15:52 +0200)
commit6f6d9a31b419aac006b4a617926624f636a0eb2f
treee15dcd434fb2c53b3f58ff460f7dd2b42294c7ec
parent88ecb64b931d87ea15bf33220f9728b8b976008c
nfctype4: Fix a memory leak in t4_readbin_cc

In t4_readbin_cc memory is allocated and response data is
copied into it just do read access on different fields of
this memory. The allocated memory was never freed.
This patch replaces the allocation and copy by just casting
the response data to a pointer thus eleminating the memory
leak.
plugins/nfctype4.c