This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=b2c334df6e8f74e9de298286facbf3e5490580c1

commit b2c334df6e8f74e9de298286facbf3e5490580c1
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Jul 8 19:10:51 2023 +0200

    test: Fix varbuf memory leak in t-pkg-format test
    
    Warned-by: gcc ASAN
---
 lib/dpkg/t/t-pkg-format.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/dpkg/t/t-pkg-format.c b/lib/dpkg/t/t-pkg-format.c
index a6d33feb6..81e7ddbaf 100644
--- a/lib/dpkg/t/t-pkg-format.c
+++ b/lib/dpkg/t/t-pkg-format.c
@@ -65,6 +65,7 @@ test_field(struct pkginfo *pkg, const char *fmt, const char 
*exp)
        pkg_format_print(&vb, head, pkg, &pkg->installed);
        test_str(vb.buf, ==, exp);
        pkg_format_free(head);
+       varbuf_destroy(&vb);
 }
 
 static void

-- 
Dpkg.Org's dpkg

Reply via email to