From: Pierangelo Masarati Date: Tue, 17 Mar 2009 15:52:41 +0000 (+0000) Subject: use, then free (ITS#6027) X-Git-Tag: ACLCHECK_0~673 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6627f34356c0969ba59f0eb575d443c4e259dd78;p=openldap use, then free (ITS#6027) --- diff --git a/servers/slapd/at.c b/servers/slapd/at.c index d4c4244b38..59899b4395 100644 --- a/servers/slapd/at.c +++ b/servers/slapd/at.c @@ -1080,10 +1080,10 @@ register_at( const char *def, AttributeDescription **rad, int dupok ) freeit = 1; } else { - ldap_attributetype_free( at ); Debug( LDAP_DEBUG_ANY, "register_at: AttributeType \"%s\": %s, %s\n", def, scherr2str(code), err ); + ldap_attributetype_free( at ); return code; } }