Fix crash on Windows when doing a LDAP search.
authorAndrej Kacian <ticho@claws-mail.org>
Sun, 28 Aug 2016 20:42:10 +0000 (22:42 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sun, 28 Aug 2016 20:42:10 +0000 (22:42 +0200)
src/ldapquery.c

index 72b55259631a892cd0d3ce026c9f7a81e611f053..b729d945f46dcde72d555e37a6723b701ce910c2 100644 (file)
@@ -639,7 +639,7 @@ static GList *ldapqry_process_single_entry(
        if( ber != NULL ) {
                ber_free( ber, 0 );
        }
        if( ber != NULL ) {
                ber_free( ber, 0 );
        }
-       g_free( dnEntry );
+       ldap_memfree( dnEntry );
 
        return listReturn;
 }
 
        return listReturn;
 }