Khronos Public Bugzilla
Bug 199 - OpenCL Spec Example "D.3 A Simple Reduction Example" leaks memory
OpenCL Spec Example "D.3 A Simple Reduction Example" leaks memory
Status: NEW
Product: OpenCL
Classification: Unclassified
Component: Sample Implementation
unspecified
All All
: P5 trivial
: ---
Assigned To: Neil Trevett
OpenCL Working Group
http://www.khronos.org/registry/cl/sp...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-20 20:05 PDT by Filsinger
Modified: 2009-08-20 20:05 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filsinger 2009-08-20 20:05:40 PDT
"load_program_source" opens a file with fopen and never closes it.
the source buffer returned from "load_program_source" is never freed.  (neither at the end of a successful run or during any of the early-out error cases).