Closed cgundogan closed 6 years ago
However, setting *pkt to NULL in the local_producer() code path yields mem leaks and segfaults, because NULL is tried to be freed.
Where is the pkt tried to be freed? I agree, simply setting pkt
to NULL
seems wrong, but is the pkt
really freed later?
Contribution description
The
pkt
passed toccnl_fwd_handleInterest()
is freed after the invocation ofccnl_fwd_handleInterest()
. However, setting*pkt
toNULL
in thelocal_producer()
code path yields mem leaks and segfaults, becauseNULL
is tried to be freed.Issues/PRs references
none