mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 22:20:27 +01:00
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>
(cherry picked from commit 36fef005b1)
This commit is contained in:
parent
c9088b5251
commit
fc65fc5035
1 changed files with 2 additions and 0 deletions
|
|
@ -747,6 +747,8 @@ get_extension_override( struct gl_context *ctx )
|
|||
}
|
||||
}
|
||||
|
||||
free(env);
|
||||
|
||||
/* Remove trailing space. */
|
||||
len = strlen(extra_exts);
|
||||
if (extra_exts[len - 1] == ' ')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue