summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2012-04-09 13:59:03 -0700
committerChad Versace <[email protected]>2012-04-09 17:31:51 -0700
commit36fef005b191fcd3fa858abb5f2aa6e7229e2c60 (patch)
tree55e812d3a8588f8e199743dadf9f3744aa186cce /src/mesa
parent783e4da72aa203a645737dec81b001341951a942 (diff)
main: Fix memory leak in _mesa_make_extension_string()
I forgot to free the string returned by strdup(). Note: This is a candidate for the stable branches. CC: Johannes Obermayr <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/extensions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 8c262af081f..3ce4cd5596c 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -750,6 +750,8 @@ get_extension_override( struct gl_context *ctx )
}
}
+ free(env);
+
/* Remove trailing space. */
len = strlen(extra_exts);
if (extra_exts[len - 1] == ' ')