Fixed memory leak with pdsch_set_rnti()

This commit is contained in:
ismagom 2014-11-18 17:11:56 +01:00
parent a21c8c7993
commit b96e33ffd6
2 changed files with 4 additions and 2 deletions

View File

@ -206,6 +206,10 @@ int main(int argc, char **argv) {
fprintf(stderr, "Error initaiting UE MIB decoder\n");
exit(-1);
}
pdsch_set_rnti(&ue_dl.pdsch, prog_args.rnti); // This is the RNTI we want to look for
/* Initialize subframe counter */
sf_cnt = 0;

View File

@ -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) {
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,
&q->harq_process[0], rvidx);
if (ret == LIBLTE_ERROR) {