mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Err, duh, free(3) doesn't set its argument to NULL... Fix realloc of a freed
chunk.
This commit is contained in:
parent
5e127035e4
commit
51f7a48bf0
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue