Fixing MLK. (33773)

This commit is contained in:
mcafee%netscape.com 2000-05-17 07:00:15 +00:00
parent cc3aa17aae
commit 7e35fdb10f
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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;