diff options
-rw-r--r-- | src/afm-udb.c | 4 |
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; } |