commit 3f81dbe736093e4e4842ab166cc0ed68a6791761
parent be3816a6b353cb6487caf16a4aa97a1e2fb44f5f
Author: Jacki <jacki@thejackimonster.de>
Date: Sun, 11 Feb 2024 22:39:40 +0100
Fix memory leak in test case
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/test_gnunet_chat_file.c b/tests/test_gnunet_chat_file.c
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2022--2023 GNUnet e.V.
+ Copyright (C) 2022--2024 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -160,6 +160,8 @@ skip_search_account:
handle
);
+ GNUNET_free(filename);
+
ck_assert_ptr_ne(file, NULL);
skip_file_upload: