From 3db032d41e5c266fb18729caa27390b40e77e533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= Date: Tue, 9 May 2017 10:11:39 +0200 Subject: [PATCH] ccn-lite: shell: free all memory, not just prefix struct --- sys/shell/commands/sc_ccnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/commands/sc_ccnl.c b/sys/shell/commands/sc_ccnl.c index 5277d9af36..c0768d4101 100644 --- a/sys/shell/commands/sc_ccnl.c +++ b/sys/shell/commands/sc_ccnl.c @@ -226,7 +226,7 @@ int _ccnl_interest(int argc, char **argv) printf("Content received: %s\n", _cont_buf); return 0; } - ccnl_free(prefix); + free_prefix(prefix); gnrc_netreg_unregister(GNRC_NETTYPE_CCN_CHUNK, &_ne); } printf("Timeout! No content received in response to the Interest for %s.\n", argv[1]);