From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH 1/2] unit: fix memory leak in test-dpp
Date: Tue, 27 Feb 2024 11:35:20 -0800 [thread overview]
Message-ID: <20240227193521.304643-1-prestwoj@gmail.com> (raw)
---
unit/test-dpp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/unit/test-dpp.c b/unit/test-dpp.c
index 781d494a..0a4fd01f 100644
--- a/unit/test-dpp.c
+++ b/unit/test-dpp.c
@@ -331,8 +331,10 @@ static void test_key_derivation(const void *data)
if (vector->i_asn1) {
HEX2BUF(vector->i_asn1, tmp, sizeof(tmp));
+ l_free(asn1);
asn1 = dpp_point_to_asn1(i_boot_public, &asn1_len);
+ l_free(from_asn1);
from_asn1 = dpp_point_from_asn1(asn1, asn1_len);
assert(l_ecc_points_are_equal(from_asn1, i_boot_public));
--
2.34.1
next reply other threads:[~2024-02-27 19:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-27 19:35 James Prestwood [this message]
2024-02-27 19:35 ` [PATCH 2/2] crypto: fix uninitialized variable coverity warning James Prestwood
2024-02-27 20:34 ` [PATCH 1/2] unit: fix memory leak in test-dpp Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240227193521.304643-1-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox