From b9dfc7c058a8425b298c826c5f2ff7bb5232d626 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 23 Sep 1994 01:53:08 +0000 Subject: [PATCH] Fix memory leak caused by not freeing top-level structure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4336 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/keytab/file/ChangeLog | 5 +++++ src/lib/krb5/keytab/file/ktf_remove.c | 1 + 2 files changed, 6 insertions(+) diff --git a/src/lib/krb5/keytab/file/ChangeLog b/src/lib/krb5/keytab/file/ChangeLog index 28a8435e4..10aeb56fa 100644 --- a/src/lib/krb5/keytab/file/ChangeLog +++ b/src/lib/krb5/keytab/file/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 22 21:51:53 1994 Theodore Y. Ts'o (tytso@dcl) + + * ktf_remove.c (krb5_ktfile_remove): Fix memory leak caused by not + freeing the top-level structure. + Wed Sep 14 21:56:15 1994 Theodore Y. Ts'o (tytso@dcl) * ktf_util.c (krb5_ktfileint_delete_entry): Fixed bug reported by diff --git a/src/lib/krb5/keytab/file/ktf_remove.c b/src/lib/krb5/keytab/file/ktf_remove.c index 3415d88d5..0888e8495 100644 --- a/src/lib/krb5/keytab/file/ktf_remove.c +++ b/src/lib/krb5/keytab/file/ktf_remove.c @@ -63,6 +63,7 @@ krb5_keytab_entry *entry; break; } krb5_kt_free_entry(cur_entry); + krb5_xfree(cur_entry); } if (kerror && kerror != KRB5_KT_END) { -- 2.26.2