Fixed memory leaks caused by not freeing bitvector

Especially each data message from SGSN caused two memory leaks, which
resulted in increasing memory usage while receiving date from SGSN.
This commit is contained in:
Andreas Eversberg 2013-01-16 08:56:33 +01:00
parent 7a5a67ab7b
commit 273a222d7f
2 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,8 @@ void testRlcMacDownlink()
bitvec_free(vector);
free(data);
}
bitvec_free(resultVector);
}
@ -201,6 +203,8 @@ void testRlcMacUplink()
bitvec_free(vector);
free(data);
}
bitvec_free(resultVector);
}
int main(int argc, char *argv[])

View File

@ -127,6 +127,7 @@ int gprs_bssgp_pcu_rx_dl_ud(struct msgb *msg, struct tlv_parsed *tp)
bitvec_read_field(block, rp, 4); // SMS Value
bitvec_read_field(block, rp, 4); // SMS Value
}
bitvec_free(block);
}
/* get lifetime */
uint16_t delay_csec = 0xffff;