]> git.sur5r.net Git - openldap/commitdiff
use, then free (ITS#6027)
authorPierangelo Masarati <ando@openldap.org>
Tue, 17 Mar 2009 15:52:41 +0000 (15:52 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 17 Mar 2009 15:52:41 +0000 (15:52 +0000)
servers/slapd/at.c

index d4c4244b380344deda6dc4657e543b139b39e22b..59899b4395be5193790e463587cac91c577b8bfb 100644 (file)
@@ -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;
                }
        }