mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02: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>
This commit is contained in:
parent
783e4da72a
commit
36fef005b1
1 changed files with 2 additions and 0 deletions
|
|
@ -750,6 +750,8 @@ get_extension_override( struct gl_context *ctx )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(env);
|
||||||
|
|
||||||
/* Remove trailing space. */
|
/* Remove trailing space. */
|
||||||
len = strlen(extra_exts);
|
len = strlen(extra_exts);
|
||||||
if (extra_exts[len - 1] == ' ')
|
if (extra_exts[len - 1] == ' ')
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue