diff options
| author | Tim Vanderhoek <hoek@FreeBSD.org> | 2000-06-04 01:31:56 +0000 |
|---|---|---|
| committer | Tim Vanderhoek <hoek@FreeBSD.org> | 2000-06-04 01:31:56 +0000 |
| commit | 5fb2f505a69f04dcbff92cae5ba872ac685fa216 (patch) | |
| tree | d07b41bbe7172df6c9d71eef2d9ad8a718a18246 /lib/libc | |
| parent | e4d60cc53a8a17957f7367c7c93c8d24f1dbd0f0 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -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 |
