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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7657>
This commit is contained in:
Jordan Petridis 2024-10-12 21:38:08 +03:00 committed by GStreamer Marge Bot
parent 1032450a0e
commit 4b8d43446e

View file

@ -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;