From ab54e45f67a215d541a9aaed2148bfa935841f1f Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 9 Oct 2024 20:37:10 +0300 Subject: [PATCH] tests/lc3: Allocate the same size for the buffer and the data 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 f8cc2bd89f..e2f6438a15 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 (sizeof (guint64)); + guint64 *data = g_malloc (size); *data = num;