#include "debug.h"
#include "LDAPEntry.h"
+#include "LDAPAsynConnection.h"
#include "LDAPException.h"
using namespace std;
DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPEntry::LDAPEntry()" << endl);
char* tmp=ldap_get_dn(ld->getSessionHandle(),msg);
m_dn=string(tmp);
- free(tmp);
+ ldap_memfree(tmp);
m_attrs = new LDAPAttributeList(ld, msg);
}
m_attrs=attrs;
}
-const string LDAPEntry::getDN() const{
+const string& LDAPEntry::getDN() const{
DEBUG(LDAP_DEBUG_TRACE,"LDAPEntry::getDN()" << endl);
return m_dn;
}