[neard][PATCH 15/16] unit: do not open-code freeing ndef message
Krzysztof Kozlowski <[email protected]>
| Newsgroups | dev.linux.lists.oe-linux-nfc,org.01.lists.linux-nfc |
|---|---|
| Message-ID | <[email protected]> |
Use near_ndef_msg_free() instead of open-coding it. Signed-off-by: Krzysztof Kozlowski <[email protected]> --- unit/test-snep-read.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unit/test-snep-read.c b/unit/test-snep-read.c index 414b801a5e71..0a2010a677e1 100644 --- a/unit/test-snep-read.c +++ b/unit/test-snep-read.c @@ -896,8 +896,7 @@ static void test_snep_response_put_get_ndef(gpointer context, g_free(req); g_free(resp); - g_free(ndef->data); - g_free(ndef); + near_ndef_msg_free(ndef); } int main(int argc, char **argv) -- 2.27.0