Err, duh, free(3) doesn't set its argument to NULL... Fix realloc of a freed

chunk.
This commit is contained in:
Juli Mallett 2002-06-04 04:08:18 +00:00
parent 5e127035e4
commit 51f7a48bf0

View file

@ -457,8 +457,10 @@ prerun(int argc, char **argv)
/*
* Free the input line buffer, if we have one.
*/
if (inpline != NULL)
if (inpline != NULL) {
free(inpline);
inpline = NULL;
}
}
static void