From nobody Thu Jun 22 05:00:29 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qmp8t17yxz4fnFW; Thu, 22 Jun 2023 05:00:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qmp8t0gplz4Zlt; Thu, 22 Jun 2023 05:00:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687410030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=esy/aE+B6R/vB92rLJByeuTfYKeBR6disV9ud4C3Qec=; b=xbGt2C+yQCUhumVKAAePjmBssY+dRhszkERmKAJEZ5F+fNXZXEySRnDC7JgdMR7l81cCS1 YTrc1NVQHk0UXEdGs7Xl3664KYdxKDyX9yGtQvth2zlIIX3vvhmAA5jeUUwBBqJsgzrXqO 1FOhNg2VH+CPuJbJKiNXMiiRblB6BCQYXi/kWJMoY4IPjdXOiWiXFDmP25jBQbiFGdLdkw rs1q2gk0pkZ+OalROrZ1eTmf2IO5VdKfAJbS7VOHdR00tNEimWaJkKca3fiF5r8Hp5UFot tPbLWnAm77Ahl5Xdhuot8xkIyPP/laseuLTs5rs3SjXMSiYMPoMcTOhLhUOyDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687410030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=esy/aE+B6R/vB92rLJByeuTfYKeBR6disV9ud4C3Qec=; b=wEnnMsT1npDeos3oFJJlp1fY94RiY0PE+WesRWP2qaGWplcXJ+W0PFaQotJEwjTsiCtGtM u/6cOG4gISm56HuFiIU65LhKoKGgd2XNs/s0O3c/QFqSuZPrNPL8SS9gmkyUncS3L8LrxI pqTxBG6A4yDQHS6jSyz+EHSEnmspmjKJ1JKrdobLYyn0etYuK/Iq/QC6oqtml/NXKoG4r8 LiE4UIF6w46AA9XOLyWSYkf29WogdhAuFOv0yJeSuDDr+urnUajl+02OcATVVXoz/WWLbK JqLydP38ASmUQfBAvmy2JIZI11KrEbP/uYLW9OLbGxbDWefYdIyFoKyFnFpHog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687410030; a=rsa-sha256; cv=none; b=TUTt99Y9vjwA8wnAPaoJGPMipfuYii4aLxVE14gUxdB63ivTIJOi9zJbS6wLWQx2Ra0IWq QsFj07DERetVqXsgLKs7kUNGmgp1MEaYw8xySQHpq5EwaltBiislrnR+E6mVGDcCDJdROn kAteaJX+AOwodx9MVXVoXacvbHtswqjiSbwpLNcPgyIhHYfz2qmJ3NtBo3EpY/pnXSJUEj 1LHZ24vSzOw7NALSnQaHL/YRoh+zb14A7yAtWF1QHWdKbygJ1mx5dng066WCELyUINqXsC 3HVsmUf/7eCbFJSQnCWB0S25QkVuo6l9XH236EoFP6p0RNUOGv3bZfjxSylyVQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qmp8s6pvXz19DV; Thu, 22 Jun 2023 05:00:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35M50TIx069027; Thu, 22 Jun 2023 05:00:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35M50TNA069026; Thu, 22 Jun 2023 05:00:29 GMT (envelope-from git) Date: Thu, 22 Jun 2023 05:00:29 GMT Message-Id: <202306220500.35M50TNA069026@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 781624ca2d05 - main - getfacl: free `acl` in print_acl error path List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 781624ca2d054430052c828ba8d2c2eaf2d733e7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=781624ca2d054430052c828ba8d2c2eaf2d733e7 commit 781624ca2d054430052c828ba8d2c2eaf2d733e7 Author: Kyle Evans AuthorDate: 2023-06-22 04:58:33 +0000 Commit: Kyle Evans CommitDate: 2023-06-22 04:58:33 +0000 getfacl: free `acl` in print_acl error path Sponsored by: Klara, Inc. --- bin/getfacl/getfacl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/getfacl/getfacl.c b/bin/getfacl/getfacl.c index ecdc73f74fbc..a077cb8780b8 100644 --- a/bin/getfacl/getfacl.c +++ b/bin/getfacl/getfacl.c @@ -157,6 +157,7 @@ print_acl(char *path, acl_type_t type, int hflag, int iflag, int nflag, acl_text = acl_to_text_np(acl, 0, flags); if (!acl_text) { warn("%s: acl_to_text_np() failed", path); + (void)acl_free(acl); return(-1); }