From b710ba5abda8cb986af48e5c6141ccd60773f061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Mon, 20 Apr 2015 14:43:15 +0200 Subject: [PATCH] Fix memory leak. --- libfreefare/mifare_desfire.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libfreefare/mifare_desfire.c b/libfreefare/mifare_desfire.c index e1495c1..543d80a 100644 --- a/libfreefare/mifare_desfire.c +++ b/libfreefare/mifare_desfire.c @@ -1235,6 +1235,8 @@ mifare_desfire_get_iso_file_ids (MifareTag tag, uint16_t **files, size_t *count) (*files)[i] = le16toh (*(uint16_t *)(p + (2*i))); } + free (data); + return 0; }