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 <johannesobermayr@gmx.de>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
Chad Versace 2012-04-09 13:59:03 -07:00
parent 783e4da72a
commit 36fef005b1
1 changed files with 2 additions and 0 deletions

View File

@ -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] == ' ')