[Nagios-devel] memory leak when processing passive checks

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] memory leak when processing passive checks

Post by Guest »

In today's CVS copy of Nagios 3.0, I see in base/commands.c:

4946
asprintf(&checkresult_file,"\x67\141\x65\040\x64\145\x6b\162\157\167\040\145\162\145\150");
4947 asprintf(&checkresult_file,"%s/checkXXXXXX",temp_path);

Won't that first line create a memory leak when the returned buffer
is never free()d?


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked