I am running the c program on a CentOS 5.5 computer. The program starts a cycle that runs the tests again and again until it is stopped by an external source.
If necessary, I use the old driver for the PCI card, which communicates with my test system. Since upgrading from CentOS 4.5 to 5.5, I noticed that I can only skip my program 175 times. At this time, the program stops with an error allocating heap memory. I can observe how memory is used in pieces of 10 to 20 MB every time the program loops and the system simply run out of memory. When I exit the program using Cntrl-C, the memory is immediately freed.
I used Valgrind, which indicates that memory leaks are in the old driver. The company that wrote the driver only supports Windows, and they have not updated the driver for more than 5 years.
Without source code, can I free the memory used by the driver every time I go through my program?
Thanks.
c memory-leaks centos5 driver
Gmandude
source share