diff options
author | Brian Paul <[email protected]> | 2010-02-14 10:02:42 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-02-14 10:05:42 -0700 |
commit | 2523172a5e9b60a1075ed0b67b9c6935d8feeeb7 (patch) | |
tree | 55ae6dcc17e29285857a75baf1a5d75242ae9a45 /src | |
parent | d4d0629fcdcd98208e2badd3987755d9a6a1c9da (diff) |
src/glu/mesa: fix mem leak (bug 26559)
Diffstat (limited to 'src')
-rw-r--r-- | src/glu/mesa/mipmap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glu/mesa/mipmap.c b/src/glu/mesa/mipmap.c index d85ce9b9b0a..ad6b6e63a62 100644 --- a/src/glu/mesa/mipmap.c +++ b/src/glu/mesa/mipmap.c @@ -287,7 +287,11 @@ gluScaleImage(GLenum format, } break; default: - return GLU_INVALID_ENUM; + { + free(tempin); + free(tempout); + return GLU_INVALID_ENUM; + } } @@ -670,6 +674,7 @@ gluBuild1DMipmaps(GLenum target, GLint components, break; default: /* Not implemented */ + free(texture); return GLU_ERROR; } } |