Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix some more memory leaks
[src/app-framework-binder.git]
/
src
/
afb-api-v3.c
diff --git
a/src/afb-api-v3.c
b/src/afb-api-v3.c
index
1bda6b0
..
02853b1
100644
(file)
--- a/
src/afb-api-v3.c
+++ b/
src/afb-api-v3.c
@@
-239,6
+239,9
@@
void afb_api_v3_unref(struct afb_api_v3 *api)
{
if (api && !__atomic_sub_fetch(&api->refcount, 1, __ATOMIC_RELAXED)) {
afb_export_destroy(api->export);
+ while (api->count)
+ free(api->verbs[--api->count]);
+ free(api->verbs);
free(api);
}
}