diff --git a/src/ccnl-core-util.c b/src/ccnl-core-util.c index 7e14ffcf3..9c836c430 100644 --- a/src/ccnl-core-util.c +++ b/src/ccnl-core-util.c @@ -1112,12 +1112,14 @@ ccnl_cs_dump(struct ccnl_relay_s *ccnl) { struct ccnl_content_s *c = ccnl->contents; unsigned i = 0; + char *s; while (c) { printf("CS[%u]: %s [%d]: %s\n", i++, - ccnl_prefix_to_path(c->pkt->pfx), + (s = ccnl_prefix_to_path(c->pkt->pfx)), (c->pkt->pfx->chunknum)? *(c->pkt->pfx->chunknum) : -1, c->pkt->content); c = c->next; + ccnl_free(s); } }