diff options
| author | Tim Vanderhoek <hoek@FreeBSD.org> | 2000-05-21 02:55:09 +0000 |
|---|---|---|
| committer | Tim Vanderhoek <hoek@FreeBSD.org> | 2000-05-21 02:55:09 +0000 |
| commit | 8187dd1c8b6354eae10dff8c4fc69d5908402cc8 (patch) | |
| tree | bfb32ca732e4c5165c9cf811031b41df90b3522b /lib/libc/gen/getcap.c | |
| parent | 3f81737f30d35967aa3ca47d8098c8309721fb65 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/getcap.c')
| -rw-r--r-- | lib/libc/gen/getcap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/getcap.c b/lib/libc/gen/getcap.c index 4e41a7967a39..b3261aeb54ae 100644 --- a/lib/libc/gen/getcap.c +++ b/lib/libc/gen/getcap.c @@ -382,8 +382,10 @@ getent(cap, len, db_array, fd, name, depth, nfield) break; } - if (!foundit) + if (!foundit) { + free(record); return (-1); + } /* * Got the capability record, but now we have to expand all tc=name |
