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:
@@ -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] == ' ')
|
||||||
|
Reference in New Issue
Block a user