mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove check for NULL prior to free(9) and m_freem(9).
Approved by: cperciva (mentor)
This commit is contained in:
parent
4cb9d1beca
commit
1eb9ea583b
3 changed files with 5 additions and 10 deletions
|
|
@ -386,8 +386,7 @@ linprocfs_domtab(PFS_FILL_ARGS)
|
|||
sbuf_printf(sb, " 0 0\n");
|
||||
}
|
||||
mtx_unlock(&mountlist_mtx);
|
||||
if (flep != NULL)
|
||||
free(flep, M_TEMP);
|
||||
free(flep, M_TEMP);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
@ -447,8 +446,7 @@ linprocfs_dopartitions(PFS_FILL_ARGS)
|
|||
}
|
||||
g_topology_unlock();
|
||||
|
||||
if (flep != NULL)
|
||||
free(flep, M_TEMP);
|
||||
free(flep, M_TEMP);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -517,8 +517,7 @@ eof:
|
|||
td->td_retval[0] = nbytes - resid;
|
||||
|
||||
out:
|
||||
if (cookies)
|
||||
free(cookies, M_TEMP);
|
||||
free(cookies, M_TEMP);
|
||||
|
||||
VOP_UNLOCK(vp, 0);
|
||||
foffset_unlock(fp, off, 0);
|
||||
|
|
|
|||
|
|
@ -1443,10 +1443,8 @@ out:
|
|||
|
||||
bad:
|
||||
free(iov, M_IOV);
|
||||
if (control != NULL)
|
||||
m_freem(control);
|
||||
if (linux_cmsg != NULL)
|
||||
free(linux_cmsg, M_TEMP);
|
||||
m_freem(control);
|
||||
free(linux_cmsg, M_TEMP);
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue