Skip to content

Commit

Permalink
Unit test: Fix res leak, missing fclose in output/test_repoquery
Browse files Browse the repository at this point in the history
  • Loading branch information
jrohel authored and ppisar committed Jan 7, 2025
1 parent 367003d commit c7e0a99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/libdnf5-cli/output/test_repoquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit c7e0a99

Please sign in to comment.