projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d200019
)
Free reference count on network when it goes away
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 17 Jul 2009 09:28:11 +0000
(11:28 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 17 Jul 2009 09:28:11 +0000
(11:28 +0200)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index
50e2acd
..
3244263
100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-812,6
+812,11
@@
void __connman_service_put(struct connman_service *service)
if (iter != NULL) {
reply_pending(service, EIO);
+ if (service->network != NULL) {
+ connman_network_unref(service->network);
+ service->network = NULL;
+ }
+
service->state = CONNMAN_SERVICE_STATE_FAILURE;
service->error = CONNMAN_SERVICE_ERROR_OUT_OF_RANGE;