subscr: Fix potential subscr ref count issue

In case the subscriber is currently busy we would omit the
subscr_put. This seems to be very hard to hit as the subscr
need to be active and at the same time be selected for the
purge operation.
This commit is contained in:
Holger Hans Peter Freyther 2015-08-04 11:37:30 +02:00
parent e019b564ec
commit 8159455506
1 changed files with 1 additions and 0 deletions

View File

@ -353,6 +353,7 @@ static void subscr_expire_callback(void *data, long long unsigned int id)
LOGP(DMM, LOGL_DEBUG, "Not expiring subscriber %s (ID %llu)\n",
subscr_name(s), id);
subscr_update_expire_lu(s, conn->bts);
subscr_put(s);
return;
}