ccn-lite: shell: free all memory, not just prefix struct

This commit is contained in:
Cenk Gündoğan 2017-05-09 10:11:39 +02:00
parent 4dd8bd13d2
commit 3db032d41e

View File

@ -226,7 +226,7 @@ int _ccnl_interest(int argc, char **argv)
printf("Content received: %s\n", _cont_buf); printf("Content received: %s\n", _cont_buf);
return 0; return 0;
} }
ccnl_free(prefix); free_prefix(prefix);
gnrc_netreg_unregister(GNRC_NETTYPE_CCN_CHUNK, &_ne); gnrc_netreg_unregister(GNRC_NETTYPE_CCN_CHUNK, &_ne);
} }
printf("Timeout! No content received in response to the Interest for %s.\n", argv[1]); printf("Timeout! No content received in response to the Interest for %s.\n", argv[1]);