[ oprofile-Bugs-2881620 ] bfd_spu_support.cpp: memory leak

View: New views
1 Messages — Rating Filter:   Alert me  

[ oprofile-Bugs-2881620 ] bfd_spu_support.cpp: memory leak

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2881620, was opened at 2009-10-19 10:33
Message generated for change (Tracker Item Submitted) made by dcb314
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=2881620&group_id=16191

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: dcb (dcb314)
Assigned to: Nobody/Anonymous (nobody)
Summary: bfd_spu_support.cpp: memory leak

Initial Comment:

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.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=116191&aid=2881620&group_id=16191

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
oprofile-list mailing list
oprofile-list@...
https://lists.sourceforge.net/lists/listinfo/oprofile-list