diff options
author | Tim Vanderhoek <hoek@FreeBSD.org> | 2000-05-21 02:50:36 +0000 |
---|---|---|
committer | Tim Vanderhoek <hoek@FreeBSD.org> | 2000-05-21 02:50:36 +0000 |
commit | 8bf73d1a7a1170cba602614ad37e999fbedac62b (patch) | |
tree | 9f162a4c89a32951d4e610b9307f245139389792 /libutil | |
parent | c172c8e3f17a4a35760ec236373c0b06dbcd86bd (diff) | |
download | pw-darwin-8bf73d1a7a1170cba602614ad37e999fbedac62b.tar.gz pw-darwin-8bf73d1a7a1170cba602614ad37e999fbedac62b.tar.zst pw-darwin-8bf73d1a7a1170cba602614ad37e999fbedac62b.zip |
Fix a memory leak with lc->lc_cap in login_close().
PR: bin/17084
Diffstat (limited to 'libutil')
-rw-r--r-- | libutil/login_cap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libutil/login_cap.c b/libutil/login_cap.c index af27766..b7528b9 100644 --- a/libutil/login_cap.c +++ b/libutil/login_cap.c @@ -152,6 +152,7 @@ login_close(login_cap_t * lc) if (lc) { free(lc->lc_style); free(lc->lc_class); + free(lc->lc_cap); free(lc); if (--lc_object_count == 0) { free(internal_string); |