diff options
author | cperciva <cperciva@FreeBSD.org> | 2008-05-23 05:07:22 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2008-05-23 05:07:22 +0000 |
commit | d6da92763e434b5a352932bf992e8eda0f1de268 (patch) | |
tree | d9a63f0480a7559c31ca66c84d0298d308ddf887 /sys/cddl/dev/dtrace/dtrace_hacks.c | |
parent | 8ae6743fcd2d34f030e006f8b78ec059408646b1 (diff) | |
download | FreeBSD-src-d6da92763e434b5a352932bf992e8eda0f1de268.zip FreeBSD-src-d6da92763e434b5a352932bf992e8eda0f1de268.tar.gz |
The value le->name cannot be NULL when we're freeing an entry in the
hardlink table for two reasons: 1. If le->name is set to NULL, the
structure le won't be inserted into the table; 2. Even if le somehow
did manage to get into the table with le->name equal to NULL, we would
die when we dereferenced le->null before we could get to the point of
freeing the entry.
Remove the unnecessary "if (le->name != NULL)" test and just free the
pointer.
Found by: Coverity Prevent
Diffstat (limited to 'sys/cddl/dev/dtrace/dtrace_hacks.c')
0 files changed, 0 insertions, 0 deletions