diff options
author | ulfvonbelow <strilen@tilde.club> | 2023-01-29 07:01:27 -0600 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-02-06 13:56:29 +0900 |
commit | 5a91ea8e9a171f99f8e5f3b26f488873efa08875 (patch) | |
tree | 63fc92be8adb4e42a355604a772633e4025f47b8 | |
parent | efad40e99f1d00b41814d9a5ee856a88e1be979e (diff) | |
download | gnunet-5a91ea8e9a171f99f8e5f3b26f488873efa08875.tar.gz gnunet-5a91ea8e9a171f99f8e5f3b26f488873efa08875.zip |
HELLO: fix memory leak in GNUNET_HELLO_extract_address.
Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
-rw-r--r-- | src/hello/hello-ng.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hello/hello-ng.c b/src/hello/hello-ng.c index da3a069e0..9d77e4f80 100644 --- a/src/hello/hello-ng.c +++ b/src/hello/hello-ng.c | |||
@@ -169,9 +169,11 @@ GNUNET_HELLO_extract_address (const void *raw, | |||
169 | sig, | 169 | sig, |
170 | public_key)) | 170 | public_key)) |
171 | { | 171 | { |
172 | GNUNET_free (data); | ||
172 | GNUNET_break_op (0); | 173 | GNUNET_break_op (0); |
173 | return NULL; | 174 | return NULL; |
174 | } | 175 | } |
176 | GNUNET_free (data); | ||
175 | *mono_time = raw_mono_time; | 177 | *mono_time = raw_mono_time; |
176 | *nt = raw_nt; | 178 | *nt = raw_nt; |
177 | return GNUNET_strdup (raw_addr); | 179 | return GNUNET_strdup (raw_addr); |