summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gprs.c1
1 files changed, 1 insertions, 0 deletions
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;
}