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
|
@ -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] == ' ')
|
||||
|
|
Loading…
Reference in New Issue