[Click] memory leak on creating a new element

Bart Braem bart.braem at ua.ac.be
Sat Oct 29 04:45:59 EDT 2005


On Friday 28 October 2005 23:34, Qinghua(Kevin) Ye wrote:
> I encoutered a memory leak problem when I create a new element. The
> elements is simple pull processing mode. It pulls serveral packets from its
> input element, stores it in a packets array, and then allocates a new
> packet according to the total length of the packets, copies the content of
> these packets into the new allocated packet and frees the old packets one
> by one. Tests shows that there is memory leak problem.
>
> However, if I pull one packet, copy the packet content, kill it, then pull
> another packet, iteratively, it works ok. Could anyone give some
> explanation of this scheme? Thanks.

Is it possible to post code of both algorithms? 

Bart
-- 
Bart Braem
PATS research group
Dept. of Mathematics and Computer Sciences
University of Antwerp
G2.36, Building G
Middelheimlaan 1
2020 Antwerpen, Belgium
Phone: +32 (0)3 265.35.19.
Fax: +32 (0)3 265.37.77.
Web: www.pats.ua.ac.be


More information about the click mailing list