From 08e57ca3132726dc3cddf22de457bdaf3d4a06fa Mon Sep 17 00:00:00 2001 From: Cedric Roux Date: Tue, 17 Jan 2023 13:10:08 +0100 Subject: [PATCH] bugfix: use correct size in malloc() --- radio/ETHERNET/USERSPACE/LIB/eth_udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/ETHERNET/USERSPACE/LIB/eth_udp.c b/radio/ETHERNET/USERSPACE/LIB/eth_udp.c index c098d4f539..45cc75bd4d 100644 --- a/radio/ETHERNET/USERSPACE/LIB/eth_udp.c +++ b/radio/ETHERNET/USERSPACE/LIB/eth_udp.c @@ -417,7 +417,7 @@ extern int oai_exit; void *udp_write_thread(void *arg) { udp_ctx_t *utx = (udp_ctx_t *)arg; - utx->resp = (notifiedFIFO_t*) malloc(sizeof(notifiedFIFO_elt_t)); + utx->resp = malloc(sizeof(*utx->resp)); initNotifiedFIFO(utx->resp); LOG_D(PHY,"UDP write thread started on core %d\n",sched_getcpu()); reset_meas(&utx->device->tx_fhaul);