Hi all, I'm using source code of wireshark-1.10.9 in order to modify some pieces of code in packet-data.c. I use functions to allocate memory like this:
but when I run
to allocate. It can run but I see the memory increasing very fast. Finally, I got the error:
when the memory is at 95% and about 1837440 packets were read even I check log and see that every time, my program only allocates 140 or 90... bytes. As mentioned in README.malloc, "The ephemeral functions allocate memory that will be automatically freed once the current packet dissection completes" but in my case, it look like the memory is not freed. So, please help if you have an idea for this:
P/S: When I use static memory allocation, it run faster and memory increases slower but still get increasing and stop after running 10 minutes.
asked 24 Sep '14, 03:05
edited 25 Sep '14, 19:59