]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Fix a memory leak with lc->lc_cap in login_close().
authorTim Vanderhoek <hoek@FreeBSD.org>
Sun, 21 May 2000 02:50:36 +0000 (02:50 +0000)
committerTim Vanderhoek <hoek@FreeBSD.org>
Sun, 21 May 2000 02:50:36 +0000 (02:50 +0000)
PR: bin/17084

libutil/login_cap.c

index af27766e5064c6e189ac2a795c1239208ffb6eed..b7528b99efc25dad1d50f8ab547bdfa741c27231 100644 (file)
@@ -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);