From a127f9b7d2bfda439b392806e85a43c821b48ce2 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 11 Feb 2025 11:40:29 +0000 Subject: [PATCH] tests: Fix a memory leak if a callable-info test is skipped Signed-off-by: Philip Withnall --- girepository/tests/callable-info.c | 1 + 1 file changed, 1 insertion(+) diff --git a/girepository/tests/callable-info.c b/girepository/tests/callable-info.c index ee23d2e62..69fd5e940 100644 --- a/girepository/tests/callable-info.c +++ b/girepository/tests/callable-info.c @@ -199,6 +199,7 @@ test_callable_info_static_vfunc (RepositoryFixture *fx, if (!vfunc_info) { g_test_skip ("g-ir-scanner is not new enough"); + gi_base_info_unref (info); return; } g_assert_nonnull (vfunc_info);