ctf_lib.c ctf_fdopen has a memory leak, when the allocation of sp32 is sucessful but next statement fails.
Free sp32 before returning. Assume free handles a null pointer.
Differential D9767
Fix a memory leak in libctf trix_juniper.net on Feb 23 2017, 4:41 PM. Authored by Tags None Referenced Files
Subscribers
Details ctf_lib.c ctf_fdopen has a memory leak, when the allocation of sp32 is sucessful but next statement fails. Free sp32 before returning. Assume free handles a null pointer. Run clang's static analyzer, scan-build, before to reproduce the problem, run after to verify proble resolution.
Diff Detail
Event TimelineComment Actions Yes, that would be helpful. |