aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2019-12-04 00:18:54 +0100
committerSylvain Munaut <tnt@246tNt.com>2019-12-08 15:22:38 +0100
commit0b8390e1c2179106190c0cddc0dc76d65edb0cc9 (patch)
tree8a591949ab7caab4c4b14ae7cafe9a15a276a831 /lib
parent306f197108d1a264bebea9f96ac22fa084d402fb (diff)
fosphor/gl: Fix memory leak when releasing color map
Thanks to Emil Berg for reporting Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/fosphor/gl_cmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/fosphor/gl_cmap.c b/lib/fosphor/gl_cmap.c
index cf347ac..48d2e35 100644
--- a/lib/fosphor/gl_cmap.c
+++ b/lib/fosphor/gl_cmap.c
@@ -217,6 +217,9 @@ fosphor_gl_cmap_release(struct fosphor_gl_cmap_ctx *cmap_ctx)
gl_cmap_release_shader(&cmap_ctx->shaders[GL_CMAP_SHADER_SIMPLE]);
gl_cmap_release_shader(&cmap_ctx->shaders[GL_CMAP_SHADER_BICUBIC]);
gl_cmap_release_shader(&cmap_ctx->shaders[GL_CMAP_SHADER_FALLBACK]);
+
+ /* Release container */
+ free(cmap_ctx);
}