Skip to content
Snippets Groups Projects
Commit fb0d2714 authored by Jaroslava Fiedlerova's avatar Jaroslava Fiedlerova Committed by knopp
Browse files

Replace dynamic mem allocation by static for p_outDec in decode_offload

parent 432fee1a
No related branches found
No related tags found
2 merge requests!2839Integration: `2024.w27`,!2721T2 card: LDPC encoder/decoder TB processing
......@@ -258,7 +258,8 @@ int decode_offload(PHY_VARS_gNB *phy_vars_gNB,
offset += LDPC_MAX_CB_SIZE;
}
int8_t *p_outDec = calloc(harq_process->C * Kr_bytes, sizeof(int8_t));
int8_t p_outDec[harq_process->C * Kr_bytes];
memset(p_outDec, 0, sizeof(p_outDec));
decodeIterations =
ldpc_interface_offload.LDPCdecoder(decParams, harq_pid, ULSCH_id, harq_process->C, (int8_t *)l_ol, p_outDec, NULL, NULL);
......@@ -307,7 +308,6 @@ int decode_offload(PHY_VARS_gNB *phy_vars_gNB,
}
ulsch->last_iteration_cnt = decodeIterations;
free(p_outDec);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_gNB_ULSCH_DECODING,0);
return 0;
}
......
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