lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240904085951.104910-1-zhangjiao2@cmss.chinamobile.com>
Date: Wed,  4 Sep 2024 16:59:51 +0800
From: zhangjiao2 <zhangjiao2@...s.chinamobile.com>
To: linux-kernel@...r.kernel.org
Cc: trivial@...nel.org,
	zhang jiao <zhangjiao2@...s.chinamobile.com>
Subject: [PATCH] delayacct: Fix missing free

From: zhang jiao <zhangjiao2@...s.chinamobile.com>

Free string allocated by strdup().

Signed-off-by: zhang jiao <zhangjiao2@...s.chinamobile.com>
---
 tools/accounting/getdelays.c | 1 +
 tools/accounting/procacct.c  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tools/accounting/getdelays.c b/tools/accounting/getdelays.c
index 1334214546d7..b08d3e2c871c 100644
--- a/tools/accounting/getdelays.c
+++ b/tools/accounting/getdelays.c
@@ -562,6 +562,7 @@ int main(int argc, char *argv[])
 			err(rc, "error sending deregister cpumask\n");
 	}
 err:
+	free(logfile);
 	close(nl_sd);
 	if (fd)
 		close(fd);
diff --git a/tools/accounting/procacct.c b/tools/accounting/procacct.c
index 90c4a37f53d9..28825fd68a12 100644
--- a/tools/accounting/procacct.c
+++ b/tools/accounting/procacct.c
@@ -403,6 +403,7 @@ int main(int argc, char *argv[])
 			err(rc, "error sending deregister cpumask\n");
 	}
 err:
+	free(logfile);
 	close(nl_sd);
 	if (fd)
 		close(fd);
-- 
2.33.0




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ