osmo-gbproxy/openbsc/tests
Jacob Erlbeck 265e7350fa sgsn/test: Fix memory leak in test_subscriber_gsup
Currently the MM context is not deleted when a GSUP location
cancellation message is processed, because the real
sgsn_update_subscriber_data function has been wrapped to a dummy
implementation.

This commit adds an explicit call to sgsn_mm_ctx_cleanup_free which
also unassigns the LLME, so the call to gprs_llgmm_assign is removed.

It also adds an assertion to check that there are no talloc'ed blocks
left in tall_bsc_ctx.

Addresses:
== 372 bytes in 1 blocks are possibly lost in loss record 7 of 9
==    at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==    by 0x4059FB8: _talloc_zero (talloc.c:354)
==    by 0x8055B82: sgsn_mm_ctx_alloc (gprs_sgsn.c:167)
==    by 0x804A336: alloc_mm_ctx (sgsn_test.c:140)
==    by 0x804B24D: test_subscriber_gsup (sgsn_test.c:503)
==    by 0x804EC99: main (sgsn_test.c:1853)

Sponsored-by: On-Waves ehf
2015-01-30 21:33:29 +01:00
..
abis Partial revert "Fix most compiler warnings with gcc-4.9.2" 2015-01-02 11:42:38 +01:00
bsc move libctrl from openbsc to libosmoctrl (libosmocore.git) 2014-08-21 15:34:28 +02:00
bsc-nat nat: Introduce a config free for the test and fix valgrind issues 2014-08-29 11:42:34 +02:00
bsc-nat-trie move libctrl from openbsc to libosmoctrl (libosmocore.git) 2014-08-21 15:34:28 +02:00
channel msc: Add and use gsm_subscriber_group 2014-12-05 14:59:02 +01:00
db db: Extend the test to mark a SMS as delivered and verify it 2014-12-25 17:33:30 +01:00
gbproxy Partial revert "Fix most compiler warnings with gcc-4.9.2" 2015-01-02 11:42:38 +01:00
gprs gprs/test: Fix GSUP Purge MS response messages 2015-01-30 21:29:58 +01:00
gsm0408 sms: Increment the RP Message Reference for each transaction 2014-02-20 11:35:56 +01:00
mgcp mgcp/sdp: Session name must not be empty pick an empty one 2014-11-20 23:17:32 +01:00
sgsn sgsn/test: Fix memory leak in test_subscriber_gsup 2015-01-30 21:33:29 +01:00
smpp smpp: Fix the make distcheck for smpp 2013-09-19 11:08:43 +02:00
subscr msc: Add per subscriber keep_in_ram flag 2014-12-09 09:08:28 +01:00
trau mncc: Complete definitions for all speech traffic frames at MNCC interface 2014-03-20 22:36:16 +01:00
Makefile.am bsc/test: Add tests for gsm_subscriber base 2014-12-05 15:16:59 +01:00
atlocal.in sgsn: Add boilerplate code for a SGSN test 2014-10-09 17:22:34 +02:00
ctrl_test_runner.py nat: Fix copy and paste in the test code 2014-12-09 19:13:00 +01:00
smpp_test_runner.py nitb/smpp: Add simple test runner for the issues found by daniel 2014-03-06 23:48:17 +01:00
testsuite.at bsc/test: Add tests for gsm_subscriber base 2014-12-05 15:16:59 +01:00
vty_test_runner.py gprs: Support cancellation type 2015-01-30 21:27:07 +01:00