mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 00:58:36 -04:00
Free mp on a couple of error paths.
CID: 978387
This commit is contained in:
parent
e8d2bea9cb
commit
e495018e91
1 changed files with 6 additions and 2 deletions
|
|
@ -279,11 +279,15 @@ xdr_mntdump(XDR *xdrsp, struct mountlist **mlp)
|
|||
return (0);
|
||||
mp->ml_left = mp->ml_right = (struct mountlist *)0;
|
||||
strp = mp->ml_host;
|
||||
if (!xdr_string(xdrsp, &strp, MNTNAMLEN))
|
||||
if (!xdr_string(xdrsp, &strp, MNTNAMLEN)) {
|
||||
free(mp);
|
||||
return (0);
|
||||
}
|
||||
strp = mp->ml_dirp;
|
||||
if (!xdr_string(xdrsp, &strp, MNTPATHLEN))
|
||||
if (!xdr_string(xdrsp, &strp, MNTPATHLEN)) {
|
||||
free(mp);
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Build a binary tree on sorted order of either host or dirp.
|
||||
|
|
|
|||
Loading…
Reference in a new issue