summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-07-06 13:38:43 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-07-08 12:02:19 +0200
commit7cd66d49f833e1c6007a472702d00ec0c92edc7a (patch)
tree01ef242694968399a34e54906ed56f47caa6969e
parentb2c7e0dd69287a5c2386c5fb37887c43b1e167fa (diff)
downloadlibssh-7cd66d49f833e1c6007a472702d00ec0c92edc7a.tar.gz
libssh-7cd66d49f833e1c6007a472702d00ec0c92edc7a.tar.xz
libssh-7cd66d49f833e1c6007a472702d00ec0c92edc7a.zip
tests: Fix memory leak in ssh_server_fuzzer
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
-rw-r--r--tests/fuzz/ssh_server_fuzzer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fuzz/ssh_server_fuzzer.cpp b/tests/fuzz/ssh_server_fuzzer.cpp
index 3008ccf4..00fb2e48 100644
--- a/tests/fuzz/ssh_server_fuzzer.cpp
+++ b/tests/fuzz/ssh_server_fuzzer.cpp
@@ -186,6 +186,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
}
}
+ ssh_event_free(event);
+
close(socket_fds[0]);
close(socket_fds[1]);