From: Colin Walters Date: Mon, 18 Oct 2021 15:44:44 +0000 (-0400) Subject: tests/rollsum: Use `g_malloc` not `malloc` X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2^2~13^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=58dc6a08b49384cbde3346f6b0675d684fe7c8db;p=ostree.git tests/rollsum: Use `g_malloc` not `malloc` To pacify gcc's `-fanalyzer`. --- diff --git a/tests/test-rollsum.c b/tests/test-rollsum.c index 08c78b66..08aea235 100644 --- a/tests/test-rollsum.c +++ b/tests/test-rollsum.c @@ -75,8 +75,8 @@ test_rollsum (void) #define MAX_BUFFER_SIZE 1000000 gsize i; int len; - g_autofree unsigned char *a = malloc (MAX_BUFFER_SIZE); - g_autofree unsigned char *b = malloc (MAX_BUFFER_SIZE); + g_autofree unsigned char *a = g_malloc (MAX_BUFFER_SIZE); + g_autofree unsigned char *b = g_malloc (MAX_BUFFER_SIZE); g_autoptr(GRand) rand = g_rand_new (); /* These two buffers produce the same crc32. */