Fixed one more memory leak that was missed in b77707343.
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 12 Jul 2017 11:36:23 +0000 (13:36 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 12 Jul 2017 11:36:23 +0000 (13:36 +0200)
src/ldapctrl.c

index 62adf5b..ddc8c25 100644 (file)
@@ -650,6 +650,7 @@ char **ldapctl_full_attribute_array( LdapControl *ctl ) {
                /*debug_print("adding search attribute: %s\n", (gchar *) node->data);*/
                node = g_list_next( node );
        }
+       g_list_free(tmp);
        ptrArray[ i ] = NULL;
        return ptrArray;
 }