From a02387d0b520b1484d449600bd447839659d9191 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 26 Jan 2011 14:51:50 -0600 Subject: gprs: Put back the id if context creation fails --- src/gprs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/gprs.c b/src/gprs.c index 1ec9f6e6..5ce4c8ab 100644 --- a/src/gprs.c +++ b/src/gprs.c @@ -1634,6 +1634,7 @@ static struct pri_context *add_context(struct ofono_gprs *gprs, context = pri_context_create(gprs, name, type); if (context == NULL) { + idmap_put(gprs->pid_map, id); ofono_error("Unable to allocate context struct"); return NULL; } -- cgit v1.2.3