diff options
author | Marc VanHeyningen <marc.vanheyningen@isilon.com> | 2008-05-29 10:00:46 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-05-29 14:26:50 -0700 |
commit | ad00ecd3583af02dacdbb9d46881552b58467362 (patch) | |
tree | 3931b3eedb4fa862be1df2a728e2e72884cb7234 /source3/libads | |
parent | 433a05c1abfa4f67bbbb4633db69ba7e01921800 (diff) | |
download | samba-ad00ecd3583af02dacdbb9d46881552b58467362.tar.gz samba-ad00ecd3583af02dacdbb9d46881552b58467362.tar.bz2 samba-ad00ecd3583af02dacdbb9d46881552b58467362.zip |
Tiny memory leak
(This used to be commit e7f76a0c65085dd1e7b50ea3537e11922e7d9ecd)
Diffstat (limited to 'source3/libads')
-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 af96c3e10a..72f5dee80c 100644 --- a/source3/libads/util.c +++ b/source3/libads/util.c @@ -64,6 +64,8 @@ ADS_STATUS ads_guess_service_principal(ADS_STRUCT *ads, server_realm = SMB_STRDUP(ads->server.realm); if (!server || !server_realm) { + SAFE_FREE(server); + SAFE_FREE(server_realm); return ADS_ERROR(LDAP_NO_MEMORY); } |