diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-03-27 12:16:02 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-03-27 12:16:02 +0000 |
commit | cb3db511f6fad21930292ce97cdda8c117c18dc8 (patch) | |
tree | 4df7c98030d119725568d9fc475aba849fcdcfbe /asn1/ldap/ldap.cnf | |
parent | 07a02beb98be6544c28687edbcbbd5fe87a99a3b (diff) | |
download | wireshark-cb3db511f6fad21930292ce97cdda8c117c18dc8.tar.gz |
As suggested by Jakob Zawadzki: (Bug #3311): g_free() is NULL safe, so we don't need check against it.
svn path=/trunk/; revision=27861
Diffstat (limited to 'asn1/ldap/ldap.cnf')
-rw-r--r-- | asn1/ldap/ldap.cnf | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/asn1/ldap/ldap.cnf b/asn1/ldap/ldap.cnf index a23a23ac15..656e3c697d 100644 --- a/asn1/ldap/ldap.cnf +++ b/asn1/ldap/ldap.cnf @@ -201,9 +201,7 @@ char *mechanism = NULL; if (mechanism == NULL) { mechanism = ldap_info->auth_mech; } else { - if (ldap_info->auth_mech != NULL) { - g_free(ldap_info->auth_mech); - } + g_free(ldap_info->auth_mech); ldap_info->auth_mech = mechanism; } actx->pinfo->private_data = ldap_info; |