diff options
author | Marc VanHeyningen <marc.vanheyningen@isilon.com> | 2008-05-29 10:00:46 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-05-30 13:39:51 +0200 |
commit | 7adeedaf4650f6249cd71bb0090b2589aff7c498 (patch) | |
tree | b06c820d59edda4c969bbc7a187b5df5c9810574 /source/libads | |
parent | f70be5ab57e19e831a5cecd08f930b187cef5a72 (diff) | |
download | samba-7adeedaf4650f6249cd71bb0090b2589aff7c498.tar.gz |
Tiny memory leak
(cherry picked from commit 8fce305e47aefdcad8e20d51851d8a3734508f00)
Diffstat (limited to 'source/libads')
-rw-r--r-- | source/libads/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/libads/util.c b/source/libads/util.c index af96c3e10a4..72f5dee80cb 100644 --- a/source/libads/util.c +++ b/source/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); } |