mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
- Do no try to drop a NULL filedesc pointer.
This commit is contained in:
parent
0daf62d9f5
commit
ff6f41a472
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221808
|
@ -3224,7 +3224,8 @@ sysctl_kern_proc_filedesc(SYSCTL_HANDLER_ARGS)
|
|||
}
|
||||
FILEDESC_SUNLOCK(fdp);
|
||||
fail:
|
||||
fddrop(fdp);
|
||||
if (fdp != NULL)
|
||||
fddrop(fdp);
|
||||
free(kif, M_TEMP);
|
||||
return (error);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue