[Mesa-dev] Is it a memory leak?

Zhenbo Xu zhenbo1987 at gmail.com
Tue Jul 12 05:38:40 PDT 2011


Hi all,
I have been detecting memory leaks in mesa for SPEC2000,
and I found a kind of memory leaks shown in the following code

gl_text_image* image_to_texture(...) {
  ...
  textImage = gl_alloc_texttrue_image(...);
  if (!textImage)
    return NULL;
  ...
  switch (image->Type) {
    case ...
    ...
    default:
        gl_problem(...)
         return NULL;   //here without releasing textImage
  }
}

Is it a memory leak ?
Hope for your replies!
-- 
Zhenbo Xu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110712/9e5ba6ea/attachment.html>


More information about the mesa-dev mailing list