diff options
author | Volker Lendecke <vl@samba.org> | 2008-10-04 22:17:30 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-10-04 22:19:11 +0200 |
commit | 80665a0b5abbdd8df735e1ccdab3206399beba0b (patch) | |
tree | fa9296ac2d7fd1b3cde45a49f7f6ca693bfe0561 /source3 | |
parent | 9eea6929e3420a0035ec3c0e3f1b4dd24847bbfa (diff) | |
download | samba-80665a0b5abbdd8df735e1ccdab3206399beba0b.tar.gz samba-80665a0b5abbdd8df735e1ccdab3206399beba0b.tar.bz2 samba-80665a0b5abbdd8df735e1ccdab3206399beba0b.zip |
Fix an unlikely memleak found by the IBM checker
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libads/util.c b/source3/libads/util.c index 72f5dee80c..d23c36f326 100644 --- a/source3/libads/util.c +++ b/source3/libads/util.c @@ -86,6 +86,8 @@ ADS_STATUS ads_guess_service_principal(ADS_STRUCT *ads, server_realm = SMB_STRDUP(ads->config.realm); if (!server || !server_realm) { + SAFE_FREE(server); + SAFE_FREE(server_realm); return ADS_ERROR(LDAP_NO_MEMORY); } |