use, then free (ITS#6027)

This commit is contained in:
Pierangelo Masarati 2009-03-17 15:52:41 +00:00
parent 59c7d24d7f
commit 6627f34356

View 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;
}
}