summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-30 07:06:18 +0200
committerVolker Lendecke <vlendec@samba.org>2011-03-30 10:45:44 +0200
commit0fea80c1d6e3ad819e66fc7feafecb1e8b54728e (patch)
tree71144b4a033189d8b4292a0718f3941242a43194 /nsswitch
parent40306f2247cfedb2b0c3af3a7392b1a7e83c57ab (diff)
downloadsamba-0fea80c1d6e3ad819e66fc7feafecb1e8b54728e.tar.gz
samba-0fea80c1d6e3ad819e66fc7feafecb1e8b54728e.tar.bz2
samba-0fea80c1d6e3ad819e66fc7feafecb1e8b54728e.zip
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
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/libwbclient/wbc_sid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/libwbclient/wbc_sid.c b/nsswitch/libwbclient/wbc_sid.c
index e8148aa7f8..712c865bfe 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;