libcacard: g_malloc cleanups
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 8 May 2014 15:51:01 +0000 (19:51 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 23 May 2014 20:07:29 +0000 (00:07 +0400)
commit78a4b8d2051bff8e8794e9419b7925122212b096
tree687653b7bb47b09b472676db67d50acea37e2cfb
parent6054d883d6138bfc92c73a7c090c824b64086fd2
libcacard: g_malloc cleanups

This patch replaces g_malloc() in libcacard into g_new()
or g_new0() where appropriate (removing some init-to-zero
surrounding code), g_malloc+memcpy into g_memdup() and the
like.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Alon Levy <alevy@redhat.com>
libcacard/cac.c
libcacard/card_7816.c
libcacard/event.c
libcacard/vcard.c
libcacard/vcard_emul_nss.c
libcacard/vreader.c