[2417] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-libs/166: memory leak in svc_auth_gssapi

daemon@ATHENA.MIT.EDU (bjaspan@MIT.EDU)
Thu Nov 7 15:24:13 1996

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, bjaspan@MIT.EDU
Date: Thu, 7 Nov 1996 20:23:26 GMT
From: bjaspan@MIT.EDU
Reply-To: bjaspan@MIT.EDU
To: krb5-bugs@MIT.EDU


>Number:         166
>Category:       krb5-libs
>Synopsis:       memory leak in svc_auth_gssapi
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Thu Nov 07 15:24:01 EST 1996
>Last-Modified:
>Originator:     Barry Jaspan
>Organization:
mit
>Release:        1.0-development
>Environment:
	
System: IRIX beeblebrox 5.3 11091812 IP22 mips


>Description:

The kadm5 unit tests reveal the following memory leaks, apparently in
the RPC:

         This memory was allocated from:
               _malloc        [malloc.c:761]
               create_client  [svc_auth_gssapi.c:841]
               _svcauth_gssapi [svc_auth_gssapi.c:390]
               _authenticate  [svc_auth.c:103]
               svc_getreqset  [svc.c:448]
               kadm_svc_run   [ovsec_kadmd.c:440]
               main           [ovsec_kadmd.c:384]
               __start        [crt1text.s:133]
         Block of 48 bytes (22 times); last block at 0x103d7348

         MLK: 1007 bytes leaked in 19 blocks
         This memory was allocated from:
               _malloc        [malloc.c:761]
               make_seal_token [k5seal.c:67]
               kg_seal        [k5seal.c:322]
               krb5_gss_seal  [seal.c:46]
               gss_seal       [krb5_gss_glue.c:402]
               auth_gssapi_seal_seq [auth_gssapi_misc.c:197]
               _svcauth_gssapi [svc_auth_gssapi.c:691]
               _authenticate  [svc_auth.c:103]
               svc_getreqset  [svc.c:448]
               kadm_svc_run   [ovsec_kadmd.c:440]
               main           [ovsec_kadmd.c:384]
               __start        [crt1text.s:133]
         Block of 53 bytes (19 times); last block at 0x103c7148

There are other leaks that lose 1-200 bytes over the course of the
KADM5 unit tests; see lib/kadm5/unit-test/kadmind.pure.pv in the build
tree on beeblebrox.

>How-To-Repeat:
	
>Fix:
	
>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post