projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
debug info: Call register_event_debug_infos for all events
[babeltrace.git]
/
lib
/
ref.c
diff --git
a/lib/ref.c
b/lib/ref.c
index 97460e93522a84505637d3ba80d69fb85c416405..ac0580137a5ad959d25fbfa29b3a3dc0a7ffae19 100644
(file)
--- a/
lib/ref.c
+++ b/
lib/ref.c
@@
-43,11
+43,13
@@
end:
return obj;
}
-void bt_put(void *
obj
)
+void bt_put(void *
ptr
)
{
- if (obj) {
- struct bt_object *base = obj;
+ struct bt_object *obj = ptr;
- bt_ref_put(&base->ref_count);
+ if (!obj) {
+ return;
}
+
+ bt_ref_put(&obj->ref_count);
}
This page took
0.024946 seconds
and
4
git commands to generate.