summaryrefslogtreecommitdiffstats
path: root/src/bind_event.c
diff options
context:
space:
mode:
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-11-18 13:52:01 +0100
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-11-18 13:52:01 +0100
commit32837eddf0644aef8c71a208d87aaa8140eeafaa (patch)
tree19f69200211c36853edf02d96d2bffe13b5543f8 /src/bind_event.c
parent6d5d619a059b5aeb76c2add9bc28d45bd31279e9 (diff)
Migration to binding V3
Bug-AGL: SPEC-2745 Change-Id: Idbaecfaf7d48e35fcb9d9964d682ff99702a05cd Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
Diffstat (limited to 'src/bind_event.c')
-rw-r--r--src/bind_event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bind_event.c b/src/bind_event.c
index 01887cd..15e2b5d 100644
--- a/src/bind_event.c
+++ b/src/bind_event.c
@@ -81,7 +81,7 @@ struct bind_event_t *register_event(const char *name)
if (ent == NULL)
{
ERRMSG("not enough memory");
- afb_event_drop(evt->event);
+ afb_event_unref(evt->event);
free(evt);
return NULL;
}
@@ -106,7 +106,7 @@ int remove_event(const char *name)
return 0;
}
dnode = *(struct bind_event_t **)p;
- afb_event_drop(dnode->event);
+ afb_event_unref(dnode->event);
tdelete(&key, &bind_event_root, compare);
free(dnode);