mirror of https://github.com/PentHertz/srsLTE.git
Fixed memory leak with pdsch_set_rnti()
This commit is contained in:
parent
a21c8c7993
commit
b96e33ffd6
|
@ -207,6 +207,10 @@ int main(int argc, char **argv) {
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pdsch_set_rnti(&ue_dl.pdsch, prog_args.rnti); // This is the RNTI we want to look for
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Initialize subframe counter */
|
/* Initialize subframe counter */
|
||||||
sf_cnt = 0;
|
sf_cnt = 0;
|
||||||
|
|
||||||
|
|
|
@ -241,8 +241,6 @@ int ue_dl_decode(ue_dl_t *q, cf_t *input, uint8_t *data, uint32_t sf_idx, uint32
|
||||||
}
|
}
|
||||||
if (q->harq_process[0].mcs.mod > 0) {
|
if (q->harq_process[0].mcs.mod > 0) {
|
||||||
|
|
||||||
pdsch_set_rnti(&q->pdsch, rnti);
|
|
||||||
|
|
||||||
ret = pdsch_decode(&q->pdsch, q->sf_symbols, q->ce, chest_dl_get_noise_estimate(&q->chest), data, sf_idx,
|
ret = pdsch_decode(&q->pdsch, q->sf_symbols, q->ce, chest_dl_get_noise_estimate(&q->chest), data, sf_idx,
|
||||||
&q->harq_process[0], rvidx);
|
&q->harq_process[0], rvidx);
|
||||||
if (ret == LIBLTE_ERROR) {
|
if (ret == LIBLTE_ERROR) {
|
||||||
|
|
Loading…
Reference in New Issue