Plug a possible memory leak.
MFC after: 2 weeks
This commit is contained in:
parent
58bd3bad5d
commit
9558ef7c89
@ -565,6 +565,8 @@ init_transport(struct netconfig *nconf)
|
||||
pml->pml_map.pm_port = PMAPPORT;
|
||||
if (strcmp(nconf->nc_proto, NC_TCP) == 0) {
|
||||
if (tcptrans[0]) {
|
||||
free(pml);
|
||||
pml = NULL;
|
||||
syslog(LOG_ERR,
|
||||
"cannot have more than one TCP transport");
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user