From patchwork Tue Dec 4 15:16:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 1838641 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 8913E3FCA5 for ; Tue, 4 Dec 2012 15:17:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752568Ab2LDPRA (ORCPT ); Tue, 4 Dec 2012 10:17:00 -0500 Received: from mail-gg0-f174.google.com ([209.85.161.174]:54682 "EHLO mail-gg0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723Ab2LDPQ7 (ORCPT ); Tue, 4 Dec 2012 10:16:59 -0500 Received: by mail-gg0-f174.google.com with SMTP id k2so598988ggd.19 for ; Tue, 04 Dec 2012 07:16:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=MXoesfVW95mfnUw0xeWR4MtKfZktYWGko3iJdNvOB2Y=; b=BwAJvmuBxHo5ZroYQqeOsKmbeRnBKaFm3TaKhzH/8polaoxaXin2QsKZyJIWVPI69L TRTU/QBIcLoe3wJosNbbHlKBT/JXUwRmtZ776DXKNH0mmMge5v+lq24tpTIsxI2YULbm idPkVQKnjwq8NwbHDQyVz92DtA9jmGNrNVULsEEarqtZB+QmXYsKRqVhRfc5Z3WrdVK6 TUjDr7HxT2MaYpDISz9ITPxBEB+5WYpWu602QQrMSPbBzjgsybzCKLazR6tXQXgX4Zk6 GHWM9LW5HaRr6dO7EEmV1ox4zS3zT7gd616qR2/spZnWrc0qTMpxr5DEM5JQ4dAgZP02 isSQ== Received: by 10.236.35.199 with SMTP id u47mr15010528yha.25.1354634219395; Tue, 04 Dec 2012 07:16:59 -0800 (PST) Received: from salusa.poochiereds.net (cpe-107-015-113-143.nc.res.rr.com. [107.15.113.143]) by mx.google.com with ESMTPS id g79sm1219089yhj.6.2012.12.04.07.16.57 (version=SSLv3 cipher=OTHER); Tue, 04 Dec 2012 07:16:58 -0800 (PST) From: Jeff Layton To: linux-cifs@vger.kernel.org Subject: [PATCH 5/6] getcifsacl: free strings returned by wbcLookupSid Date: Tue, 4 Dec 2012 10:16:43 -0500 Message-Id: <1354634204-21602-6-git-send-email-jlayton@samba.org> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1354634204-21602-1-git-send-email-jlayton@samba.org> References: <1354634204-21602-1-git-send-email-jlayton@samba.org> X-Gm-Message-State: ALoCoQnbaQ4x8Ud3shdXQrO8CBjMDVf+IP7e4uPF2Vd1UCRJgusQXNQ/vFlDVa+BHdZ1hWjQUzK6 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Signed-off-by: Jeff Layton --- getcifsacl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/getcifsacl.c b/getcifsacl.c index ac3674c..256b2ad 100644 --- a/getcifsacl.c +++ b/getcifsacl.c @@ -211,6 +211,8 @@ print_sid(struct cifs_sid *sidptr, int raw) if (strlen(domain_name)) printf("%c", '\\'); printf("%s", sidname); + wbcFreeMemory(domain_name); + wbcFreeMemory(sidname); return; }