From 0fea80c1d6e3ad819e66fc7feafecb1e8b54728e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 30 Mar 2011 07:06:18 +0200 Subject: s3: Fix Coverity ID 2217: RESOURCE_LEAK Autobuild-User: Volker Lendecke Autobuild-Date: Wed Mar 30 10:45:44 CEST 2011 on sn-devel-104 --- nsswitch/libwbclient/wbc_sid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1