From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1AD7A1382AC for ; Mon, 20 Jun 2016 03:22:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7D03E0A45; Mon, 20 Jun 2016 03:22:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 46538E0A45 for ; Mon, 20 Jun 2016 03:22:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9522F340861 for ; Mon, 20 Jun 2016 03:22:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 07C9A241B for ; Mon, 20 Jun 2016 03:22:12 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1466392858.107cf9e4c69a1e5add5be2e31e3134493f0cac8a.vapier@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: scanelf.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 107cf9e4c69a1e5add5be2e31e3134493f0cac8a X-VCS-Branch: master Date: Mon, 20 Jun 2016 03:22:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1f601cd8-00dd-4a6b-b134-dc8511df88f6 X-Archives-Hash: c8d5667cb32bba35c6e1335d7574c82b commit: 107cf9e4c69a1e5add5be2e31e3134493f0cac8a Author: Mike Frysinger gentoo org> AuthorDate: Mon Jun 20 03:20:58 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Jun 20 03:20:58 2016 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=107cf9e4 scanelf: avoid leaking out_format when multiple --format args are passed scanelf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scanelf.c b/scanelf.c index 3f33d89..7190301 100644 --- a/scanelf.c +++ b/scanelf.c @@ -2272,7 +2272,8 @@ static int parseargs(int argc, char *argv[]) xarraypush_str(find_lib_arr, optarg); break; case 'F': { - if (out_format) warn("You prob don't want to specify -F twice"); + if (out_format) + free(out_format); if (PAX_UTILS_CLEANUP) out_format = xstrdup(optarg); else