From c7e0a99b6b223a95418ad149746317e8f81d9638 Mon Sep 17 00:00:00 2001 From: Jaroslav Rohel Date: Sun, 5 Jan 2025 23:28:38 +0100 Subject: [PATCH] Unit test: Fix res leak, missing fclose in output/test_repoquery --- test/libdnf5-cli/output/test_repoquery.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/libdnf5-cli/output/test_repoquery.cpp b/test/libdnf5-cli/output/test_repoquery.cpp index 12870fa1d..0a5bd5a85 100644 --- a/test/libdnf5-cli/output/test_repoquery.cpp +++ b/test/libdnf5-cli/output/test_repoquery.cpp @@ -44,6 +44,7 @@ void RepoqueryTest::test_format_set_with_simple_str() { CPPUNIT_ASSERT_EQUAL(std::string("test\n"), std::string(buf)); + fclose(stream); free(buf); }