mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Plug minor memory leak at r284765.
Reported by: Coverity CID: 1308401 MFC after: 3 days
This commit is contained in:
parent
787c8cb62d
commit
0bb4b98984
1 changed files with 2 additions and 0 deletions
|
|
@ -508,6 +508,8 @@ retry_port:
|
|||
|
||||
name = NULL;
|
||||
STAILQ_FOREACH(port, &devlist.port_list, links) {
|
||||
if (name)
|
||||
free(name);
|
||||
if (port->pp == 0 && port->vp == 0)
|
||||
name = checked_strdup(port->port_name);
|
||||
else if (port->vp == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue