From: Ezra Peisach Date: Sun, 31 Dec 2006 18:10:27 +0000 (+0000) Subject: Memory leak in tests/gssapi/t_imp_name.c X-Git-Tag: krb5-1.7-alpha1~1376 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8301932af8306162b80badba587218bc46b04d44;p=krb5.git Memory leak in tests/gssapi/t_imp_name.c Memory leak by not releasing name_oid from gss_display_name(). (conditional on GSSAPI_V2 being defined). ticket:new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19024 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/gssapi/t_imp_name.c b/src/tests/gssapi/t_imp_name.c index f4ca41370..b7001b216 100644 --- a/src/tests/gssapi/t_imp_name.c +++ b/src/tests/gssapi/t_imp_name.c @@ -88,7 +88,9 @@ static int test_import_name(name) display_buffer(buffer_name); printf("\n"); (void) gss_release_buffer(&min_stat, &buffer_name); - +#ifdef GSSAPI_V2 + (void) gss_release_oid(&min_stat, &name_oid); +#endif (void) gss_release_name(&min_stat, &gss_name); return 0; }