Skip to content
Snippets Groups Projects
Commit 08e57ca3 authored by Cédric Roux's avatar Cédric Roux
Browse files

bugfix: use correct size in malloc()

parent 924d88bb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment