From nobody Wed Jul 12 03:10:52 2023 X-Original-To: dev-commits-src-branches@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 4R12n90FSMz4h3bb; Wed, 12 Jul 2023 03:10:53 +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 4R12n867bWz48mP; Wed, 12 Jul 2023 03:10:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689131452; 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=Z1N9jOeISD+iJUGVKBL8mkPGEA63SNzjBrmUphZakGo=; b=YDuwikOgSMmKkIvrRgwzdioUpx4Rk4HEbd+zUt9B87+FM7GbphmaeJxNj8w+i7MDuvUDN1 PkaoExrOtYbDVrKgjFWvpZw/H6eatOL5+3n84UsMKul/RwAi56ed0ePQQ+6hUxq+5EZ4gd BoSraTdJ/y8AmMGd0y87XP1VTTV351mrC/EcqvnkeeweXl/IKfK728Yo3lVHMw+NneAtdT LCPvmuOGk2R3ulMv6ihK/OINoprvIZWVTMlL10IL8n5HrocrQ4/nKo6T0cfrP6ObJb6kzL TnZRk6eZZKaEkXTsX3QRQZS4qiU7qZd52yD/EjnLhToGSl0hvpp8jftcsqvBQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689131452; 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=Z1N9jOeISD+iJUGVKBL8mkPGEA63SNzjBrmUphZakGo=; b=AL2YgHHcCvOYBa+YiSDmzopF+HmRWs4gQQfy7JOhCKTbkM02RF9DCFEglwonBsWH/jwixi +BXOMsFkaPTX1J9zMwxsMxc5AXYIlgCFfXeWym3SIs4xEuNlFYYyJN+V4mepvM5IF1QE26 PB5oT97H/y0gsBuZrPZdvqCWFa8gPo44jsVsfw09Qt1aT00QV/pHIuXfIJhLlhu7LVXSVN cUClqcTVXJ7PJHLw9Eay8gdtQMEoRJ9jJqNqH6BlOc8aPyy7U9BfYFOykp+Rx1nm+Hf/JT Ne3U2foqbjiNOb9oQSWl+CWwN79wcNOSTQAderByehiG98qCahpkFGl3kmhTkQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689131452; a=rsa-sha256; cv=none; b=wXqzwAcV4Z5Nh6KEgVv/UnYFJK8PYSMN1Pe9hCsB7RKRc9caJZzm465jga5B+VAHl9wvng hoctRRiwahwTI22ep6Y8nsSy9uGHwH96BqV9bpxp8HCX0xSGaCZu5LIVQ6MSrYZQ9HJx/h +hVuSK6jxCIOT8v266p1aft2D6XHM/BFF4C5sySOuogedCXNI7Ycp8iPF0pjyzWZF8KgO9 XpuQ2oP6kt+9S9TrBnkxulnFFTmdXEZ/DmNI1bJI+xNT9x3jIoajFYbXV+sriB2Zg+rZ93 SNhLcOWQslDhbQk4tbb6oNCgiEeRKLUeIvYysUjbgjh7NxAwKWRjfp6Y5RKqZg== 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 4R12n84g2Dzsc0; Wed, 12 Jul 2023 03:10:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36C3Aqak010364; Wed, 12 Jul 2023 03:10:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36C3AqiU010363; Wed, 12 Jul 2023 03:10:52 GMT (envelope-from git) Date: Wed, 12 Jul 2023 03:10:52 GMT Message-Id: <202307120310.36C3AqiU010363@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 6fa0b2b484d9 - stable/13 - getfacl: free `acl` in print_acl error path List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 6fa0b2b484d94086f07860e03b8a63567420b317 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=6fa0b2b484d94086f07860e03b8a63567420b317 commit 6fa0b2b484d94086f07860e03b8a63567420b317 Author: Kyle Evans AuthorDate: 2023-06-22 04:58:33 +0000 Commit: Kyle Evans CommitDate: 2023-07-11 15:05:29 +0000 getfacl: free `acl` in print_acl error path Sponsored by: Klara, Inc. (cherry picked from commit 781624ca2d054430052c828ba8d2c2eaf2d733e7) --- bin/getfacl/getfacl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/getfacl/getfacl.c b/bin/getfacl/getfacl.c index d59ddbcfc871..187b928a981b 100644 --- a/bin/getfacl/getfacl.c +++ b/bin/getfacl/getfacl.c @@ -248,6 +248,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); }