mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Fixing MLK. (33773)
This commit is contained in:
parent
cc3aa17aae
commit
7e35fdb10f
@ -607,6 +607,10 @@ PREF_EvaluateConfigScript(const char * js_buffer, size_t length,
|
||||
if (c == '\n')
|
||||
break;
|
||||
}
|
||||
|
||||
/* Free up gSavedLine to avoid MLK. */
|
||||
if (gSavedLine)
|
||||
free(gSavedLine);
|
||||
gSavedLine = malloc(i+1);
|
||||
if (!gSavedLine)
|
||||
return JS_FALSE;
|
||||
|
@ -607,6 +607,10 @@ PREF_EvaluateConfigScript(const char * js_buffer, size_t length,
|
||||
if (c == '\n')
|
||||
break;
|
||||
}
|
||||
|
||||
/* Free up gSavedLine to avoid MLK. */
|
||||
if (gSavedLine)
|
||||
free(gSavedLine);
|
||||
gSavedLine = malloc(i+1);
|
||||
if (!gSavedLine)
|
||||
return JS_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user