diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-30 07:06:18 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-30 10:54:06 +0200 |
commit | c9f1cd67d1c798e361db5949e5cacea15db805a7 (patch) | |
tree | 51041815e5bcf000983ececb8cd3a4334811e7bc /nsswitch | |
parent | 6dd0a66c0b096e5b384b9cf550cc4e62f93d9b7f (diff) | |
download | samba-c9f1cd67d1c798e361db5949e5cacea15db805a7.tar.gz |
s3: Fix Coverity ID 2217: RESOURCE_LEAK
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 30 10:45:44 CEST 2011 on sn-devel-104
(cherry picked from commit 0fea80c1d6e3ad819e66fc7feafecb1e8b54728e)
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/libwbclient/wbc_sid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/libwbclient/wbc_sid.c b/nsswitch/libwbclient/wbc_sid.c index e8148aa7f8c..712c865bfee 100644 --- a/nsswitch/libwbclient/wbc_sid.c +++ b/nsswitch/libwbclient/wbc_sid.c @@ -768,8 +768,8 @@ wbcErr wbcGetDisplayName(const struct wbcDomainSid *sid, wbcFreeMemory(name); name = wbcStrDup(pwd->pw_gecos); - BAIL_ON_PTR_ERROR(name, wbc_status); wbcFreeMemory(pwd); + BAIL_ON_PTR_ERROR(name, wbc_status); } wbc_status = WBC_ERR_SUCCESS; |