aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjobol <jose.bollo@iot.bzh>2018-04-03 12:09:08 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-04-05 10:48:01 +0200
commit9762ccca21386705e6c59c88a9367e71a5e5e454 (patch)
tree0ae542ae02acc7e67b609e1ec879e6e9777a65c8
parentae33f9100e3b67a8ce07e5ad8b1f0ee73867df6a (diff)
afm-udb: fix refcounting error
Change-Id: Ib5a7c398f9f07a88af05b01e08fdab97e123e374 Signed-off-by: jobol <jose.bollo@iot.bzh>
-rw-r--r--src/afm-udb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afm-udb.c b/src/afm-udb.c
index 4010fb1..e9b1e2d 100644
--- a/src/afm-udb.c
+++ b/src/afm-udb.c
@@ -465,12 +465,12 @@ int afm_udb_update(struct afm_udb *afudb)
tmp = afudb->applications;
afudb->applications = updt.applications;
apps_put(&tmp);
- afm_udb_addref(afudb);
+ afm_udb_unref(afudb);
return 0;
error:
apps_put(&updt.applications);
- afm_udb_addref(afudb);
+ afm_udb_unref(afudb);
return -1;
}