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>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 12 Oct 2022 17:35:34 +0800
From:   gaoxingwang <gaoxingwang1@...wei.com>
To:     <netdev@...r.kernel.org>
CC:     <dsahern@...il.com>, <gnault@...hat.com>,
        <stephen@...workplumber.org>, <liaichun@...wei.com>,
        <yanan@...wei.com>
Subject: [PATCH] maketable: clean up resources

Signed-off-by: gaoxingwang <gaoxingwang1@...wei.com>
---
 netem/maketable.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/netem/maketable.c b/netem/maketable.c
index ccb8f0c6..f91ce221 100644
--- a/netem/maketable.c
+++ b/netem/maketable.c
@@ -230,5 +230,8 @@ main(int argc, char **argv)
 	inverse = inverttable(table, TABLESIZE, DISTTABLESIZE, total);
 	interpolatetable(inverse, TABLESIZE);
 	printtable(inverse, TABLESIZE);
+	free(table);
+	free(inverse)
+	close(fp);
 	return 0;
 }
-- 
2.27.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ