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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247764
@ -386,7 +386,6 @@ linprocfs_domtab(PFS_FILL_ARGS)
|
||||
sbuf_printf(sb, " 0 0\n");
|
||||
}
|
||||
mtx_unlock(&mountlist_mtx);
|
||||
if (flep != NULL)
|
||||
free(flep, M_TEMP);
|
||||
return (error);
|
||||
}
|
||||
@ -447,7 +446,6 @@ linprocfs_dopartitions(PFS_FILL_ARGS)
|
||||
}
|
||||
g_topology_unlock();
|
||||
|
||||
if (flep != NULL)
|
||||
free(flep, M_TEMP);
|
||||
return (error);
|
||||
}
|
||||
|
@ -517,7 +517,6 @@ getdents_common(struct thread *td, struct linux_getdents64_args *args,
|
||||
td->td_retval[0] = nbytes - resid;
|
||||
|
||||
out:
|
||||
if (cookies)
|
||||
free(cookies, M_TEMP);
|
||||
|
||||
VOP_UNLOCK(vp, 0);
|
||||
|
@ -1443,9 +1443,7 @@ linux_recvmsg(struct thread *td, struct linux_recvmsg_args *args)
|
||||
|
||||
bad:
|
||||
free(iov, M_IOV);
|
||||
if (control != NULL)
|
||||
m_freem(control);
|
||||
if (linux_cmsg != NULL)
|
||||
free(linux_cmsg, M_TEMP);
|
||||
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user