Message ID | 20210101011759.21086-3-hauke@hauke-m.de |
---|---|
State | Superseded |
Delegated to: | Hauke Mehrtens |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=hauke-m.de Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4D6S0F0vzFz9sRf for <incoming@patchwork.ozlabs.org>; Fri, 1 Jan 2021 12:21:16 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mFSuwalSJbxC6351QxRgVrzhJLtM6qYph28OAwPjL7c=; b=sVcHskv6ZqTqGyGSFNfAk8H1E UjIQDNi+s3R+p3Lug5bXyqe5fFN4p9wu65q11kg/VdP7Kqn9af8LOvYFqawiRuBNJYgN10kk+r1t8 NKdhxsaAEoQcPqeJvt5nyxxb1oJ5bSZ6GNmU0G0KSt3JfHZ9KOhFeYgx1aeLwsKwydy6p93/Hx1Jw jVv4N6WujrPZtlbxTMU70LVXLv5xtUBE7uL7DktKdlEjXpmmWFZhNaexMte9CzHIR2p6hmwxHMq2X oSpLIWHlVpvwg/8dFtjmpDpR1tTO2RgeISKj6NMlL8NqGM63zswnBWH80Z6Sjf+JkwAmDmu6500kP a1EtpIpFA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kv95O-0000su-Bc; Fri, 01 Jan 2021 01:18:34 +0000 Received: from mout-p-102.mailbox.org ([80.241.56.152]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kv95I-0000rg-NB for openwrt-devel@lists.openwrt.org; Fri, 01 Jan 2021 01:18:30 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4D6Rwx0vPWzQlY3; Fri, 1 Jan 2021 02:18:25 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hauke-m.de; s=MBO0001; t=1609463903; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q+cKlatP26MwEnS2TNupZYNAL30e9w6q5ZDd84HLg/I=; b=vi04S48odQ0uhyQ3Szko22dmsfWFaDlc/ex+sG7GbByZ9Z2HdM+4UbLx1T5DlgOepYn9GS XYmoHNI9CZiqIPmYEBwCU9TLjOK0wCTa1xtOQaC+Hr0doWD2GUiyFNNaV4JLzAV/9lZnkM Zy1JUs5OuubgT9sy1tzCM1EUuy2AOPPifyyOPwxQJ2EYtpaZgQdDZS9DXs+IJkT00Oa+20 M9Y81QI+qw7Q+7VoWGz/YoVWcxy5zTusfa9r68xEwM+PMpg94PW265SlOEQIYYli8F0Vy6 Lp3DHYD0FIABqaWe+/ZkMrAEG/Xrngizle91lhuMn+KVAPTX1NyEHTwCdLwWDw== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id dypqpYO0U6il; Fri, 1 Jan 2021 02:18:22 +0100 (CET) From: Hauke Mehrtens <hauke@hauke-m.de> To: openwrt-devel@lists.openwrt.org Subject: [PATCH uhttpd 3/3] main: free port string after strdup() Date: Fri, 1 Jan 2021 02:17:59 +0100 Message-Id: <20210101011759.21086-3-hauke@hauke-m.de> In-Reply-To: <20210101011759.21086-1-hauke@hauke-m.de> References: <20210101011759.21086-1-hauke@hauke-m.de> MIME-Version: 1.0 X-MBO-SPAM-Probability: X-Rspamd-Score: -5.27 / 15.00 / 15.00 X-Rspamd-Queue-Id: 3B8BB1726 X-Rspamd-UID: eccc09 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201231_201829_204039_A3CC68B0 X-CRM114-Status: GOOD ( 10.66 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [80.241.56.152 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [80.241.56.152 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Cc: Hauke Mehrtens <hauke@hauke-m.de> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
[uhttpd,1/3] cmake: Use variables
|
expand
|
diff --git a/main.c b/main.c index 73e3d42..bca69cf 100644 --- a/main.c +++ b/main.c @@ -298,6 +298,7 @@ int main(int argc, char **argv) case 'p': optarg = strdup(optarg); bound += add_listener_arg(optarg, (ch == 's')); + free(optarg); break; case 'h':
This fixes a memory leak. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- main.c | 1 + 1 file changed, 1 insertion(+)