Issue 614 - memory leak in ava.c
Summary: memory leak in ava.c
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-07-04 17:02 UTC by christian.lorenz@suse.de
Modified: 2000-07-06 12:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description christian.lorenz@suse.de 2000-07-04 17:02:28 UTC
Full_Name: Christian Lorenz
Version: 2.0-devel
OS: linux-2.2.14
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (195.243.113.230)


I've debugged with YAMD and found a memory leak in get_ava().
I am not sure about the patch, please verify.

pkg/ldap/servers/slapd/ava.c,v 1.19
===================================
--- ldap/servers/slapd/ava.c.orig   Tue Jul  4 18:44:55 2000
+++ ldap/servers/slapd/ava.c    Tue Jul  4 18:45:15 2000
@@ -63,9 +63,9 @@
 
    rc = value_normalize( aa->aa_desc, usage, &value, &nvalue, text );
    ch_free( value.bv_val );
+   ch_free( type.bv_val );
 
    if( rc != LDAP_SUCCESS ) {
-       ch_free( type.bv_val );
        ad_free( aa->aa_desc, 1 );
        ch_free( aa );
        return rc;

Comment 1 Kurt Zeilenga 2000-07-04 18:30:46 UTC
Fixed, thanks.

Comment 2 Kurt Zeilenga 2000-07-06 12:36:31 UTC
changed state Open to Closed
moved from Incoming to Development