Message ID | 20240705065434.3608030-5-dominique.martinet@atmark-techno.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCWIVBV7SUGRBOFRT22AMGQEPPFQ3ZQ@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=JwkCLLm/; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::438; helo=mail-pf1-x438.google.com; envelope-from=swupdate+bncbcwivbv7sugrbofrt22amgqeppfq3zq@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-pf1-x438.google.com (mail-pf1-x438.google.com [IPv6:2607:f8b0:4864:20::438]) (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 4WFklw1JTrz1xql for <incoming@patchwork.ozlabs.org>; Fri, 5 Jul 2024 16:54:52 +1000 (AEST) Received: by mail-pf1-x438.google.com with SMTP id d2e1a72fcca58-70b0a02f2d1sf679294b3a.0 for <incoming@patchwork.ozlabs.org>; Thu, 04 Jul 2024 23:54:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720162490; cv=pass; d=google.com; s=arc-20160816; b=bZbt/otJbK8nbGRHqV7krsevBSSAtNUxFttFcdT+x9FUSQOz+i1ocjb74cRXSBSYNj rOdva7pK98sX/n5+1bnh4yGi3iuYUfjcU/XJOHHyYuXKsu3kAf1uxcDfZZYyj3WXCo6b Pq3BjsPYS5utqNxWllN6R8dmkk5S0vfrIvO7NQJpu4eFLA2S8bNSErrC9tnOUCc92ZY4 phIa1Il4n6Wg0MK9mfvHy8YuQy++9sPwg1NkPxbzK3dsBEEP3N9P1expW+iuilvCvBiY KK048DVwrlUvmxI+qOEgzIpf4+UXorWsdnfjBqgNi1ZHlGJw59WYV2rJItJppthxKsyk SvWw== 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; bh=IWYNM/NKv2tmRmFmjNEdxlqUhrkNqq7Kolpqdg/6Kds=; fh=h+TwLkd+nPlD+onNSC5j2bQqxQHZoZHjY6KsNmD1kkU=; b=i6sCuNKzS7C9Oaq50/xApgXoBCIzLBadYLOvRbWQXHttfWW6Zjr5+86WHfUbNWjEgJ DWeXsWV8efN3nNOi4wvvfCFNinzLJRUabrZucrrAUOBwKGEGCyZ0n0lXQYzMvTMIAqaJ tfP/TbOucV9z5Aj04JSwrBPW5l1VKmMHcNNC73e0hhdEj+iLLsIST/hw5U+3lT9a+A6x zhS9um2TqLH3rMsndATyOhdgYkEX8P4UxtCD/aQYTEN4to+xDfZDbuBlovtLlUP/frTX yWQF8CVYH33kaANZ/mTEdW8xe+T0Sbt6OZmU3waHEzqQQnYiauhIfwnZouHMN2qtMW6K 9RbA==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@atmark-techno.com header.s=gw2_bookworm header.b=hZZ2KBdw; dkim=pass header.i=@atmark-techno.com header.s=google header.b=hmeuWLhC; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=atmark-techno.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1720162490; x=1720767290; 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=IWYNM/NKv2tmRmFmjNEdxlqUhrkNqq7Kolpqdg/6Kds=; b=JwkCLLm/rAHKNgJUzMzyUP4/vjeUUbcMblAJbliUnVu4KWuGspXMTGbb1uakf6yLZf /TQaQe+A1EfEqQeQYrN/xH18Z5ritl1HwHO+1L2+55DGJNvDlwott8+VG7xWboc/5eOO otkk6+MsNwATNf1WFnCl4/Ll9IYpSdq1JI9bjRVw1hERBuWp+sEvBCn9xwX2bvuGEM8W ySPGxwbISa94W9tHnvb1PmK64+Qk1GxYObBjp39Lv6/oyUK6I5C6moBkgW/wIhy7FDyh 2PCHKB0+bxD89WHzED8dQOp/nvABwBPSfoBxDrYXYrXbmjFPk6m2E2MPOklycZd5Pliz Ldbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720162490; x=1720767290; 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=IWYNM/NKv2tmRmFmjNEdxlqUhrkNqq7Kolpqdg/6Kds=; b=hl1fECO40QCSckATrU7esvPWDSVp4WeRgQpfH5iEHZz/Jz/FShDInihxL2ChZcTrSh SENqHz7nQgy4zOwoce1mK38XMnptvuuKu6g6h2MWKVuvukhA9gQrelMkKUauvBb+O38/ Z+8t0aWOIsiAGX9siTv447D86rlyZp9MIpgCAb+fPdjuWHwhVLHW7mdFM8MEl1UIMOGk R2ooGbdvF3BfjJmP4Bus9HGhjpsWQMv/3E012lzl6+dQgzBpBb6ysl1rLdTvzy/WFjxT X48e0UBSCWAKGeofLxhR5C9chzsXi5SyEnRlcTqjXG7+gNFfcRzxMgRR8MMLuOzvVkSX tOOQ== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWojjQvIWy9Q/k/ENjXTxJnzCPJMCJznZ6HaPXjpPUjMc2fqZaaoq9eU7ebGjAZblutu86I46eGqAkwsMBDcEtbOyO7CfJSVInni96kHQ== X-Gm-Message-State: AOJu0YzHphg6e88g/WWcpehWQOn8+H6YVcIx5sIUiFlg+mGZaMuyPkZR aG4afSC4/XIRCXS6br42dBADjVTpQSK0GxEaaViyhNokMorF5Xu3 X-Google-Smtp-Source: AGHT+IF983JnyHPLPgCPRaDS4zX7CkenDyGqpG+egbppC7859YgyfPi3ocvfECoA0xk6MhSWOIkFCw== X-Received: by 2002:a05:6a00:3e15:b0:706:671f:d252 with SMTP id d2e1a72fcca58-70b00ac7834mr3827744b3a.26.1720162489598; Thu, 04 Jul 2024 23:54:49 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6a00:138a:b0:70a:fd97:f05b with SMTP id d2e1a72fcca58-70afef9db5als940574b3a.1.-pod-prod-03-us; Thu, 04 Jul 2024 23:54:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWuv1DeBw66uG0lWpt89JO43HhmYi2TsfG5R65X7FF5AC5A2VwgJ3YFtg1im8cAeyKn2FlUpKaaV6r3lISEhgPOrDL/4qQ0mkMS X-Received: by 2002:a05:6a21:19e:b0:1c0:dd3d:ef3a with SMTP id adf61e73a8af0-1c0dd3defacmr566329637.29.1720162488063; Thu, 04 Jul 2024 23:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720162488; cv=none; d=google.com; s=arc-20160816; b=0GtjciJUqCrK9WxZ1gXzaYtfZfBUpsPpvM0PWsSbWGMertWs9ZxLdzG9QY9VNDUyNc lMCTNNZDFtMebsz1R9GQw5pBxT/UxNw9luefvTaX7lIDpJKF3MzpKBBBziKwtlgxBb/q k1tisWUFO4c2b8k5Js3Husop4qAE0GGcquv/1tGL0X/f12VvaBTaVEa97lHYc6Lc1+rn NAMnkz0Jri7rhMcsNyK1uYO5fwEGXMt7gn9mzEAZr1+rCyMw6EbpiYp1rZdlCa32Rmbj lDoIP3z3yiqYE27cHkmpxSX+9xSlWZhzBiuOq8J5Y/z6Qezf6TdZGW29tossMCRLKDL5 cdog== 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:dkim-signature; bh=VZfVL1UDNEkzLojuRJClIjsSBbeOBnaqY7XANOKxAg8=; fh=+B2/d1InL56w78EmNOMGDlM1jn/ImadzaOAwqPUQj+o=; b=ZeUztcb/z3AUyUX4s4dWiifObwDGe6K6VYZ48MNsi8GaL8MzryjJ72xZNspQaLT5LP vd7TFaQoa1B3vxEzC43DRu9t35ub40K2WtEBt3R0QDyQQyhPcv+N99E7cSQJ2V81LuAm 2YaHI90T0FROKN8AGDkd8RTjibmlIBXwMTp+FOyg68bCn9+Sxz+uPTsRpmMWsVZyDhxc x8znWJ08vE0qcyMqSgilZf/igWV8fmDLejM0+w1uM7/IZBdrFIBlqeZN9PPBhEvm26Sl cfvNBXCVQ7xGl+CwDh0XGKQXa+SHaGzCrX6eVw1lOxKfsxzpYZ2cJGiiGI7IcFYORssc C4Dw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@atmark-techno.com header.s=gw2_bookworm header.b=hZZ2KBdw; dkim=pass header.i=@atmark-techno.com header.s=google header.b=hmeuWLhC; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=atmark-techno.com Received: from gw2.atmark-techno.com (gw2.atmark-techno.com. [35.74.137.57]) by gmr-mx.google.com with ESMTPS id d9443c01a7336-1fac131db03si5659945ad.5.2024.07.04.23.54.47 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 23:54:48 -0700 (PDT) Received-SPF: pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) client-ip=35.74.137.57; Received: from gw2.atmark-techno.com (localhost [127.0.0.1]) by gw2.atmark-techno.com (Postfix) with ESMTP id 48F0747E for <swupdate@googlegroups.com>; Fri, 5 Jul 2024 15:54:46 +0900 (JST) Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by gw2.atmark-techno.com (Postfix) with ESMTPS id F215DA6E for <swupdate@googlegroups.com>; Fri, 5 Jul 2024 15:54:44 +0900 (JST) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-70b0294b751so1025723b3a.2 for <swupdate@googlegroups.com>; Thu, 04 Jul 2024 23:54:44 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWH8Nbmyx9kTJydYArPaWHGcMxOy3ydKhk+LhhH4BZtoDRtHKCzp9mRuqg5kEJtMe1JeETU+xuieRQa/gFr5EMRwqzb7aqItVU7 X-Received: by 2002:a05:6a21:3981:b0:1be:c418:7308 with SMTP id adf61e73a8af0-1c0cc8d6f26mr3967213637.58.1720162483939; Thu, 04 Jul 2024 23:54:43 -0700 (PDT) X-Received: by 2002:a05:6a21:3981:b0:1be:c418:7308 with SMTP id adf61e73a8af0-1c0cc8d6f26mr3967197637.58.1720162483608; Thu, 04 Jul 2024 23:54:43 -0700 (PDT) Received: from pc-0182.atmarktech (117.209.187.35.bc.googleusercontent.com. [35.187.209.117]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fb3dbd7dcdsm18715895ad.157.2024.07.04.23.54.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jul 2024 23:54:43 -0700 (PDT) Received: from [::1] (helo=pc-0182.atmark.tech) by pc-0182.atmarktech with esmtp (Exim 4.96) (envelope-from <dominique.martinet@atmark-techno.com>) id 1sPcqA-00F8cO-0u; Fri, 05 Jul 2024 15:54:42 +0900 From: Dominique Martinet <dominique.martinet@atmark-techno.com> To: stefano.babic@swupdate.org, swupdate@googlegroups.com Cc: Dominique Martinet <dominique.martinet@atmark-techno.com> Subject: [swupdate] [PATCH 4/5] main: free cfgname before exiting Date: Fri, 5 Jul 2024 15:54:33 +0900 Message-Id: <20240705065434.3608030-5-dominique.martinet@atmark-techno.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240705065434.3608030-1-dominique.martinet@atmark-techno.com> References: <20240705065434.3608030-1-dominique.martinet@atmark-techno.com> MIME-Version: 1.0 X-Original-Sender: dominique.martinet@atmark-techno.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@atmark-techno.com header.s=gw2_bookworm header.b=hZZ2KBdw; dkim=pass header.i=@atmark-techno.com header.s=google header.b=hmeuWLhC; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=atmark-techno.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 | misc fixes | expand |
On 05.07.24 08:54, Dominique Martinet wrote: > This is not a problem but building with ASAN (CONFIG_EXTRA_CFLAGS and > LDFLAGS with -fsanitize=address) prints a warning that this value is not > freed every time; there is no harm in freeing it before exiting. > > Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com> > --- > core/swupdate.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/core/swupdate.c b/core/swupdate.c > index 8d6467b7b688..4f0ad963346e 100644 > --- a/core/swupdate.c > +++ b/core/swupdate.c > @@ -997,5 +997,6 @@ int main(int argc, char **argv) > if (!opt_c && !opt_i) > pthread_join(network_daemon, NULL); > > + free(cfgfname); > return exit_code; > } Acked-by: Stefano Babic <stefano.babic@swupdate.org> Best regards, Stefano
diff --git a/core/swupdate.c b/core/swupdate.c index 8d6467b7b688..4f0ad963346e 100644 --- a/core/swupdate.c +++ b/core/swupdate.c @@ -997,5 +997,6 @@ int main(int argc, char **argv) if (!opt_c && !opt_i) pthread_join(network_daemon, NULL); + free(cfgfname); return exit_code; }
This is not a problem but building with ASAN (CONFIG_EXTRA_CFLAGS and LDFLAGS with -fsanitize=address) prints a warning that this value is not freed every time; there is no harm in freeing it before exiting. Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com> --- core/swupdate.c | 1 + 1 file changed, 1 insertion(+)