summaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/tests/sgsn/sgsn_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/tests/sgsn/sgsn_test.c b/openbsc/tests/sgsn/sgsn_test.c
index ba76f5575..b83cfaef2 100644
--- a/openbsc/tests/sgsn/sgsn_test.c
+++ b/openbsc/tests/sgsn/sgsn_test.c
@@ -842,7 +842,10 @@ static void cleanup_subscr_by_imsi(const char *imsi)
subscr = gprs_subscr_get_by_imsi(imsi);
OSMO_ASSERT(subscr != NULL);
- gprs_subscr_delete(subscr);
+ subscr->keep_in_ram = 0;
+ subscr_put(subscr);
+ subscr = gprs_subscr_get_by_imsi(imsi);
+ OSMO_ASSERT(subscr == NULL);
}
static void test_gmm_attach_subscr(void)