aboutsummaryrefslogtreecommitdiff
path: root/src/syldap.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-12-17 08:07:35 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-12-17 08:07:35 +0000
commit1cad8ff2aaae3ed5b4a454053280ae168e1c7eb5 (patch)
treef0114f7a4c6a7cab587f86c34e2baa6f5ed68f34 /src/syldap.c
parentff3045b71d336885b3c0895125fb33e98adf1e2b (diff)
syldap.c: fixed memory leaks.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1925 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/syldap.c')
-rw-r--r--src/syldap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/syldap.c b/src/syldap.c
index 0cef9c3b..1475519f 100644
--- a/src/syldap.c
+++ b/src/syldap.c
@@ -602,10 +602,10 @@ gint syldap_search( SyldapServer *ldapServer ) {
if( g_ascii_strcasecmp( attribute, SYLDAP_ATTR_DN ) == 0 ) {
listDN = syldap_add_single_value( ld, e, attribute );
}
- }
- /* Free memory used to store attribute */
- ldap_memfree( attribute );
+ /* Free memory used to store attribute */
+ ldap_memfree( attribute );
+ }
/* Format and add items to cache */
syldap_build_items_fl( ldapServer, listAddress, listFirst, listLast );
@@ -821,8 +821,8 @@ GList *syldap_read_basedn_s( const gchar *host, const gint port, const gchar *bi
}
ldap_value_free( vals );
}
+ ldap_memfree( attribute );
}
- ldap_memfree( attribute );
if( ber != NULL ) {
ber_free( ber, 0 );
}
@@ -863,8 +863,8 @@ GList *syldap_read_basedn_s( const gchar *host, const gint port, const gchar *bi
}
ldap_value_free( vals );
}
+ ldap_memfree( attribute );
}
- ldap_memfree( attribute );
if( ber != NULL ) {
ber_free( ber, 0 );
}
@@ -950,8 +950,8 @@ GList *syldap_read_basedn( SyldapServer *ldapServer ) {
}
ldap_value_free( vals );
}
+ ldap_memfree( attribute );
}
- ldap_memfree( attribute );
if( ber != NULL ) {
ber_free( ber, 0 );
}
@@ -994,8 +994,8 @@ GList *syldap_read_basedn( SyldapServer *ldapServer ) {
}
ldap_value_free( vals );
}
+ ldap_memfree( attribute );
}
- ldap_memfree( attribute );
if( ber != NULL ) {
ber_free( ber, 0 );
}