[Solved] Memory leak with out malloc [closed]

[ad_1]

I believe you need to call pclose() on the descriptors returned from popen() in your CPUread() function.

See the popen() documentation here:

popen() man page on die.net

I’m not sure this directly is the cause of your problem, but it is definitely a resource leak.

0

[ad_2]

solved Memory leak with out malloc [closed]