From b1ebd3d66ea06574745626d779a7295388e3659f Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Mon, 21 Nov 2011 15:59:50 +0100 Subject: [PATCH] ndef: Fix memory leak The type array as leaking. --- src/ndef.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ndef.c b/src/ndef.c index 63d07fc..7c50494 100644 --- a/src/ndef.c +++ b/src/ndef.c @@ -1050,6 +1050,7 @@ int near_ndef_parse(struct near_tag *tag, r_type = get_record_type(t_tnf, type, type_length); offset += (type_length + il_length); + g_free(type); record = g_try_malloc0(sizeof(struct near_ndef_record)); if (record == NULL) { -- 2.7.4