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 62adf5b043b8703a4a0c2b8438775d3564092f03..ddc8c253243b912e2fe09b82e8205d62ad4e14a5 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;
 }