Message ID | 20211021193609.32928-1-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBMMCY6FQMGQEOFVGSLY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=KKegEihK; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23a; helo=mail-lj1-x23a.google.com; envelope-from=swupdate+bncbcxploxj6ikrbmmcy6fqmgqeofvgsly@googlegroups.com; receiver=<UNKNOWN>) Received: from mail-lj1-x23a.google.com (mail-lj1-x23a.google.com [IPv6:2a00:1450:4864:20::23a]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4HZyQd4Rbpz9sPB for <incoming@patchwork.ozlabs.org>; Fri, 22 Oct 2021 06:36:24 +1100 (AEDT) Received: by mail-lj1-x23a.google.com with SMTP id o4-20020a2ebd84000000b00210ae894d18sf456636ljq.13 for <incoming@patchwork.ozlabs.org>; Thu, 21 Oct 2021 12:36:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1634844978; cv=pass; d=google.com; s=arc-20160816; b=zK25uksX7Gg4LDSs5MT68ilNmwpUheVdCq628hblk4DES0VHI4XfBKnJuNbzi65uJu i6h07HOokNy4NV7YqGhQdrb+JdJm9fEgZc0GVwcOweR1wySTFoIHTfGGSfEpJuYfVxj+ isvGvGTq3FM0ujgkO/m93mTvpk0999YJ6rJM6TZMBQAz1VhPfFDT9nXG29jE4ntdxvDD G21dD3yVhQTUATt0ou7IbBdoJgFcOLimYYkq+9oTOdRaK5IrOZq6KjzmVpAMn+5kAq5k 18mcAnaH4fJotNDuABCQFhzf0jTYQMgY+n6viKv9s+flGZGux+0eD29fE8x/sRv34eMm WSTA== 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:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=k54k8aT3N/j1Cq146H3Jhq8HuM2BKWn06QYAPNtSuQw=; b=M+98tg/TYPNKDLGU/bnEoJmmzwrPfQ1yyEfXFfa19KUO0z3MNK1Q1/wTR2gY3XUTq5 HCdY9jRydzwyEwuKD/aDf8G1qrdx1+CM42bP9ycgCx/Dlxnstn1KMXBnG1Ki4/PguerU x8jurF/9IFkljipendhfKbJU+n1VvCT1r6doG7g24L9Cgd3wjUQrzvuVtR1ugMjP51nb c7J/gF4fwFXt1ZquWCJDwgxYqbllh3eXgcqg/xogXbHHz7yuRo691NTTFgO93EPi7AMV vkHRmhxQVim8lZEgZDzugZaHdPr9MlBSHxPaHlQcJPL/v4Hz/2+3zYquURuAXFoPdZxy Vg1Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=k54k8aT3N/j1Cq146H3Jhq8HuM2BKWn06QYAPNtSuQw=; b=KKegEihKbYZuiuuNqC/iL2sq/yIi7ErLGD6uF87CKoC0IB+FFJBF1r030IjbHJxmr0 5nD+xQWuvD2AWDOfTJ4V9zam3S1QkhRMxeXavhLJ+5HrQdUyOvoQk6V6zD5WwDQkTRTp 3TfHsSI6i/z2V2ABUec9Nyma8db4vrckwRynHK9yO6Utt9vDozwzcLZZbIDnuuy3rDsv O3rd9gNMPcSyTgjBaGgP275eI2NWZ0XlKE1219+B5nvS2gaPmMQRS+6r+LKZIsnaXeCw ae0kW68Vt3uzXBCEoe8yrHkbbIzcfFM8KDNaeVEOObQWWikqMTGeHWNbGDsoOSX8CZXK PdOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=k54k8aT3N/j1Cq146H3Jhq8HuM2BKWn06QYAPNtSuQw=; b=b1v6SoB8jmi4euMIewCj287dpOWla2UuBy/83Ei83Xa0tB7wxjAnM710N47nUFxra/ HqBpO8/emgxhqPbGaP6811W8cbnYL2LaUlE7JZ0ltMK1w+ms9Hiib0LpzUxDXdquil1r KRJQ7isSC5cDec3wJugdQpmKhEwISmaHuukgFVOZXC7VbW1Yaz/f3yIbQkA5n27XVCDc +V3Pfu50zVplEaKVNnHKQRWbW6Oo9eXfaYMHfuTf9zkf0aw0J6biEarcP7s2CKFwtTMV QptUyOSJbmbGT7bZC+Ti8zy5nU1faQ+IPQ4Z8Rd623rGU8xkTh6Yed6sP/RYkhwU3eAn 4AnQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532ybZJNMnBdxbTt5YmUPIfLhfwVVHwvFp3a5FRnWF3VtzwQdpT2 k6VVwBjIx4BqyCBEJK5l6wQ= X-Google-Smtp-Source: ABdhPJzVBVfG/MsyKWR4MErVE5gRiAhqqHNfh83XEU9YbjZ284Otno/n0yHGfOOm+kD0xEqWyUf0Mg== X-Received: by 2002:a05:6512:1050:: with SMTP id c16mr7025614lfb.115.1634844978127; Thu, 21 Oct 2021 12:36:18 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:e85:: with SMTP id bi5ls1471379lfb.2.gmail; Thu, 21 Oct 2021 12:36:17 -0700 (PDT) X-Received: by 2002:a05:6512:118c:: with SMTP id g12mr7121527lfr.449.1634844977136; Thu, 21 Oct 2021 12:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634844977; cv=none; d=google.com; s=arc-20160816; b=0djZKc2d1sX7c+r/eWLnb4D8epbL7AtI/327P5K1Sfo+ZC12+dvt+3WKKvMNTKZWmt J3ZsOoj/LvyOuTgTe/3cgOcAg7RLrMJGBYZXM1e8bNpP8NdS4m1LW9s28bzQheuGmLUA Zd51AJLUy25YECkHhrO6px510zJxPQ47ExNjUh02XthfWTIOTfcY5DWbuT24Kgg9bVrg 1cxIzmwciRqtx4pHCLnbIqy0Z478MKRfwFqrdkPoJ31mrsu7ZSuO9+L0Wltq5MMa7VXM adoZIOqm+osyeaapItD7learZ92Vt/r27l82qzyRtqSpxphSqN/XV04Z3dZB5muVw1d6 DU9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=HOk2nHnCIWBXDXgTswjO2Bsa9AKrXNWhWwjL9Zo96ko=; b=M9x3s6BP4aT4nAwtRcrCrWQ/Ml+whCKNxxkhUC5CeaKYcVoVG/TaB3zHbimTlkYk4m 4CQaoLCDle7cHfL67G0FQlmbOlt4FyIPrsK9eeAoxYh3uL+8Wx717xeFbZN+SCBcFsdq MVa8Oi4YtzlFrYfHW4M6CiQx72KCCb0Gd/WnlC78C8gHXB6yq3v9HbAhNepK8ow/tkie UHscY9nIZBxum3UAJbIvZAINzEShUDwgZGzFI8f69DgRhGme7aFFe/UYjdf1P39G/8Ly 29+WM+dafCiO6Tbmyaz4pFUVU2fVAALsCdh4K3DsHII+gGmUPWOPrrKFCxBgplQ4wmi7 QSTQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id z21si470926ljn.1.2021.10.21.12.36.16 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Oct 2021 12:36:17 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4HZyQS3Z7Rz1rk5T; Thu, 21 Oct 2021 21:36:16 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4HZyQS2pc2z1qqkB; Thu, 21 Oct 2021 21:36:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id L9FJPjrOnMWE; Thu, 21 Oct 2021 21:36:15 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Thu, 21 Oct 2021 21:36:14 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 639E04542880; Thu, 21 Oct 2021 21:36:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id CI8KSPqJfiwK; Thu, 21 Oct 2021 21:36:10 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id ACA9E45407BC; Thu, 21 Oct 2021 21:36:10 +0200 (CEST) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH] Fix memory leak in boot handler Date: Thu, 21 Oct 2021 21:36:09 +0200 Message-Id: <20211021193609.32928-1-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de 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 |
Fix memory leak in boot handler
|
expand
|
diff --git a/handlers/boot_handler.c b/handlers/boot_handler.c index 7bae5eaa..73c91166 100644 --- a/handlers/boot_handler.c +++ b/handlers/boot_handler.c @@ -115,7 +115,7 @@ static int install_boot_environment(struct img_type *img, } } } - free(pair); + free_string_array(pair); } /* * this handler does not use copyfile()
Signed-off-by: Stefano Babic <sbabic@denx.de> --- handlers/boot_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)