[mutter/wip/carlosg/coverity-fixes: 10/13] cogl: Plug leak on error path
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/coverity-fixes: 10/13] cogl: Plug leak on error path
- Date: Tue, 26 Oct 2021 12:39:10 +0000 (UTC)
commit f6726c61ca3f51878667446c8ca4a551ccdf91c1
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Oct 24 23:21:31 2021 +0200
cogl: Plug leak on error path
If we don't pass the gles version check, the gl_extensions string
is leaked.
CID: #1505846
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2061>
cogl/cogl/driver/gl/gles/cogl-driver-gles.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
index a9c3e7f329..33d28848c3 100644
--- a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
+++ b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
@@ -348,6 +348,7 @@ _cogl_driver_update_features (CoglContext *context,
COGL_DRIVER_ERROR,
COGL_DRIVER_ERROR_INVALID_VERSION,
"OpenGL ES 2.0 or better is required");
+ g_strfreev (gl_extensions);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]