From 4b8d43446e176db289262e68dbb1b051abbceabb Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sat, 12 Oct 2024 21:38:08 +0300 Subject: [PATCH] lc3: tests: Zero out the buffer we allocate for the tests Otherwise liblc3 will try to access the uninitialized memory and it makes valgrind very sad. Part-of: --- subprojects/gst-plugins-bad/tests/check/elements/lc3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/tests/check/elements/lc3.c b/subprojects/gst-plugins-bad/tests/check/elements/lc3.c index e2f6438a15..07d79d1765 100644 --- a/subprojects/gst-plugins-bad/tests/check/elements/lc3.c +++ b/subprojects/gst-plugins-bad/tests/check/elements/lc3.c @@ -252,7 +252,7 @@ static GstBuffer * create_test_buffer (guint64 num, guint64 size) { GstBuffer *buffer; - guint64 *data = g_malloc (size); + guint64 *data = g_malloc0 (size); *data = num;