Closed mfrey closed 5 years ago
I would also argue that the following code in ccnl_core_cleanup
in ccnl_buf.c
is never executed since bufCleanUpList is never initialized (ccnl_core_addToCleanup
is never called).
92 while (bufCleanUpList) {
93 struct ccnl_buf_s *tmp = bufCleanUpList->next;
94 ccnl_free(bufCleanUpList);
95 bufCleanUpList = tmp;
96 }
this function was a garbage collecter. i think it was only used in NFN
I'm in the midst of refactoring the content store and its interface. I've stumbled upon
ccnl_buf.h
and was wondering about theccnl_core_addToCleanup
function. What's the purpose of this function? There are also small bits of it inccnl-relay.h
(a member called*bufCleanUpList
) and also a global variable in theccnl_buf.c
. The feature however seems not to be usedMaybe I'm missing the point, but it seems to be that the functionality is broken. Is it safe to remove or is there a feature we should implement (and how)?