Message ID | 20240612144010.470339-9-Michael.Glembotzki@iris-sensing.com |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <swupdate+bncBDY5JUXLVIEBBXPGU2ZQMGQEG4JALDY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=Sf5nN+gN; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Sy4Fa0xP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::43b; helo=mail-wr1-x43b.google.com; envelope-from=swupdate+bncbdy5juxlviebbxpgu2zqmgqeg4jaldy@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-wr1-x43b.google.com (mail-wr1-x43b.google.com [IPv6:2a00:1450:4864:20::43b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vzp9t186cz23tw for <incoming@patchwork.ozlabs.org>; Thu, 13 Jun 2024 00:40:33 +1000 (AEST) Received: by mail-wr1-x43b.google.com with SMTP id ffacd0b85a97d-35f2730d114sf404084f8f.1 for <incoming@patchwork.ozlabs.org>; Wed, 12 Jun 2024 07:40:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718203230; cv=pass; d=google.com; s=arc-20160816; b=CCSRW3bBmYsO7q8mkzOFgd4cxKH5mMjLT6ZRaG9M5jxIikfXu+ClST01Zo1J9Of/2+ R1LOomLWqIWZm0Ww8yjHZGK8k6gWplkK6QAUAIwIlid2LzecdmkMCqFQzGWSiXzrDzJq YokpTj2PdsogMVOGtjQ//4uPKnRT85bsU1OUNWNDXBavJ+Ri4iI9XoB2j5R5npDdQeAC w8YPGdHIw0Y+9iqqDq1e7OX0uPU7vSaAw8sWujFAYZXTGgVkxG9Znlnf4sMpQWCX2Mx+ goLbsLPXaoditrjmxLatPMIpCVSCjn7OY+iVt3bb2ofjECe6A9Xm+LChEH8aXTQODsQY 7FfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature :dkim-signature; bh=9kA7qlTEZpu/GgkLasQULEZFyPLMpFcXTNEfo4vTzFg=; fh=gOAsekWyT+zDTw1mShXacNMHmDOYb7Vc1wyNbyWdFbc=; b=rgPPy9VF8Ot3vGkgWfakOQGysKsPp3FbZbpwIYZU+iq/OhL2f5ehdtq7uZehZFPL4l QR8QHY920OY8/hvPYl4RWtsi+5AgRbDtsEHgiNEAYaDFTVjHvVFeY+UJCra8xWqGsUCw BwnAZqhmWN2kWi7kS2oOheEDKlBGtBVZJfBYxO0Fv+h/eSMcZWEskvf4CaVSsB6fO0E7 47OzbAV8wBF1xyg4qewdVdYQZRc7TbVP9GRcachZ/UuQYpRE0FXtrRZO4WNeSfq46Jus OjfWxnLiqW+z2HrYHpQgDH617mQciaiNZ45oeQ/KovfUWVIuF7jP95AxwjieqeK1CSit 3OkQ==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=d35MZc4Z; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1718203230; x=1718808030; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=9kA7qlTEZpu/GgkLasQULEZFyPLMpFcXTNEfo4vTzFg=; b=Sf5nN+gNZrZnZ42nnLtHLw85qSthO080wixd8QJLLgR47csaeI3LG06mJQQAVmuH7t atealg18cY9SaKKIJ0k/Su8l1L6cDyod2PsGLBkUX4lFKxQX2kPqt0X59CFeumFSUsgF Bal6nO81E/RFOu2V3C0kTQ6rPPr/RMXDpKqvQd6Ogi/ajyyDioZhSDiQJuy0aS2b3b24 BhDKKWVrQ+p/QJMjSvLuT3U4B9biaj0zNhADwENKH6PCjeVIqTx/pbOtn31NLXNP3r1n zxjczYlz5VXeUTO50pioypearkc6ROqxA/It5FdIkNla9fDCFbo8+RHdgGw5xc3wfYqS 1r7g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718203230; x=1718808030; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=9kA7qlTEZpu/GgkLasQULEZFyPLMpFcXTNEfo4vTzFg=; b=Sy4Fa0xPS5+a5OlAhnA05jjLmS0t5hQgKZozk4O+9nBK/PB8IIH7f109aqQTpN/fd5 jqAAFt8btlZNUlA0v9NEWyv99oUiUTLpqtxn7kS00Nh6krUy1NlYGo0t71b7vuvZx6Zp EMlqlq4vawPQA3pEJhzdJMWMs7WTqDo7hzlNNzFcOkum8SZrfYF/b0WIKtiXEJ+S8/Yp WIyW7vBAIqjiYT/0jknZabHA3Y66WemE8DM54hvjTzekKfxpAfyGRZcr1jKD7frTDexC glLoVZaCcqnTTCdWWneno88UyYqDN8Jb2+FCQ9nuZiXmTPjiNsE311JsyastmjLJci96 IT0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718203230; x=1718808030; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=9kA7qlTEZpu/GgkLasQULEZFyPLMpFcXTNEfo4vTzFg=; b=Fs67LjcLs5JbwWzA6iVmf5wBI8V5cR9XByMO3ufiQwmdMTHb9iLwZ8ohukk8LB7ml9 /JTAf5iX+3yEKb4+mOPkViZy/P2peUxLk1euv5JUiNl6XEcm2f3K9sk3Xg4IQNrNHiOY uzMK8nu7POD60yRbX6UpgzIyZiXYkY6awhk8WH4TyHcWtht1EctuEbPHVZYUg5K2EBxG bklIJ14RRSsslF0dlSj0LIlgWVdtRxkeU+9fxr2q8njnj+QkCNnrnG+h/xNKc72UrPVy qLpRGpqXGgFgHF2yhochHd9Ca6XAkagQEr3zpMnP1PLwMCMJq0lr3cYdyN8Wk8UDlCtz FTjA== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVWupR2A5jzWu24RHUmpMsS648GJqHnfReTz/O4xHVmA2VJ9mhV+WDAgrmQdZhPMX5TLYWkYyB8MUFThlMtIx7vRko4IZeORLycxYjORQ== X-Gm-Message-State: AOJu0Yyulvy0wYkjDBfZ+Kbp6mMoBA0xtGecvpYO6XJ5E9nbDPId/Aul cLySPxWa7S+SwR6j+p/D0oi3uz6e97AIlsMRHwhXkf7gZjT+EKhG X-Google-Smtp-Source: AGHT+IHFH3t3Zu5Nnlet+vp5z0KUXrj6BmditCriRhorKZPP7KPPCMaLkWlY8cWj11Td173Q9TGMVw== X-Received: by 2002:adf:f88b:0:b0:35f:1f11:be21 with SMTP id ffacd0b85a97d-35f2b28af79mr5425593f8f.17.1718203229960; Wed, 12 Jun 2024 07:40:29 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:600c:3b19:b0:422:8e3e:c7b4 with SMTP id 5b1f17b1804b1-4228e3ec93als2398025e9.0.-pod-prod-00-eu-canary; Wed, 12 Jun 2024 07:40:27 -0700 (PDT) X-Received: by 2002:a05:600c:3acf:b0:422:12bf:27be with SMTP id 5b1f17b1804b1-422863b4554mr22637635e9.11.1718203227202; Wed, 12 Jun 2024 07:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718203227; cv=none; d=google.com; s=arc-20160816; b=oj4HHwyCYckUdK2FrUqVXxCodBDXj9rZ/L4Qg6ppf/E/gjTGehzP0OnIIYYjXIzX6R DbygxvCM+cO7qnLkHqHt7UIqraE4XesO47YTrbDoj/rGZLXWsFI5di1cvAJxx5sSFasS gj3G4+WK7deEP9bGfeRErUwL0QxEX0kqlf+EFqkCvY8WjD3koJTyZNiKLnReSS04VxEH DVjFlxSF4nui/ZDmkAWb+8t28YxraKCsCQYm1IhLbi5BRflZ4CC9i+77oZajtz6SVEs2 mEQGXw2xzO7j1DXvLfkRoHqNQHUlf8Fd9yFfvaIpKF09fnQ2oasH/hBoHbyVD0EHrvlG 7BHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=jOFJlOP3jV8TbpRfp4i1sMeOxEykZqDPDW/qNC5dwh0=; fh=zydHuzCQWrku2OPQyZfraJZFcOpEXLQ/YBcu3QNiBd0=; b=w2cOU7gKnKa+QK7gXO0SI6b3WRpVShbWnwTcGJ6LkkIYhMYcikry1xKkar8S7GGnCf +kD74WoRmV8Bp6l50aHIkGelngSvGlNGGw2TDDxtNB8K8tyJPD2qs2kBtfSPfQE3zb7m ZmPhMuKyyrgJyJ/KCASLPNbCzGeZrTrEkHbDd257ic74edtCHKw/deHOLvaFbvPnzMga aLaMOex9wnO4Lo95/cQ9iJ9y6vBRdJxKnUyG7JXRDQybK3KYrVTsFThJAL+pw06oPfDy rbY1ynbFEK/Bt+29odUK+IREEmjqY3RxBSugUHAp930nXQuFYOa2IY2+kffRmIsFifDp K0mQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=d35MZc4Z; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com. [2a00:1450:4864:20::630]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-422855708b7si927485e9.1.2024.06.12.07.40.27 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 07:40:27 -0700 (PDT) Received-SPF: pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) client-ip=2a00:1450:4864:20::630; Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a6269885572so176174466b.1 for <swupdate@googlegroups.com>; Wed, 12 Jun 2024 07:40:27 -0700 (PDT) X-Received: by 2002:a17:906:35c2:b0:a6f:4287:f196 with SMTP id a640c23a62f3a-a6f4287fc6dmr184753066b.2.1718203226338; Wed, 12 Jun 2024 07:40:26 -0700 (PDT) Received: from localhost.localdomain ([2a02:8108:96c0:76fc::b071]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f16b27ac7sm481179166b.54.2024.06.12.07.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:40:26 -0700 (PDT) From: Michael Glembotzki <m.glembo@gmail.com> To: swupdate@googlegroups.com Cc: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com> Subject: [swupdate] [PATCH 08/23] mongoose: Remove double free calls Date: Wed, 12 Jun 2024 16:36:06 +0200 Message-ID: <20240612144010.470339-9-Michael.Glembotzki@iris-sensing.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240612144010.470339-1-Michael.Glembotzki@iris-sensing.com> References: <20240612144010.470339-1-Michael.Glembotzki@iris-sensing.com> MIME-Version: 1.0 X-Original-Sender: m.glembo@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=d35MZc4Z; spf=pass (google.com: domain of m.glembo@gmail.com designates 2a00:1450:4864:20::630 as permitted sender) smtp.mailfrom=m.glembo@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Update Mongoose Version to 7.14
|
expand
|
diff --git a/mongoose/mongoose_multipart.c b/mongoose/mongoose_multipart.c index fb62c1e4..3361169c 100644 --- a/mongoose/mongoose_multipart.c +++ b/mongoose/mongoose_multipart.c @@ -142,10 +142,6 @@ static void mg_http_multipart_finalize(struct mg_connection *c) { struct mg_http_multipart_stream *mp_stream = c->pfn_data; mg_http_multipart_call_handler(c, MG_EV_HTTP_PART_END, NULL, 0); - free((void *) mp_stream->part.filename.ptr); - mp_stream->part.filename.ptr = NULL; - free((void *) mp_stream->part.name.ptr); - mp_stream->part.name.ptr = NULL; mg_http_free_proto_data_mp_stream(mp_stream); mp_stream->state = MPS_FINISHED; free(mp_stream);
mp_streami->part.name and mp_stream->part.filename are already freed in mg_http_free_proto_data_mp_stream(). Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com> --- mongoose/mongoose_multipart.c | 4 ---- 1 file changed, 4 deletions(-)