#186 bfd_spu_support.cpp: memory leak

closed-invalid
None
5
2009-10-19
2009-10-19
dcb
No

For source code file oprofile-0.9.5/libutil++/bfd_spu_support.cpp
function spu_open_bfd

I notice the following code

spu_elf * spu_elf_stream = (spu_elf *)malloc(sizeof(spu_elf));

but I fail to notice any matching call to free. This looks
like a memory leak to me. Suggest add call to free near the
end of the routine.

Discussion

  • Maynard Johnson

    Maynard Johnson - 2009-10-19

    The stream is freed in spu_bfd_iovec_close(). Closing this bugzilla as "Invalid".

     
  • Maynard Johnson

    Maynard Johnson - 2009-10-19
    • assigned_to: nobody --> maynardj
    • status: open --> closed-invalid
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks