diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2018-03-23 11:56:23 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-03-23 13:00:00 +0000 |
commit | 915899a827968d4d6534ddb09e3797a58771f922 (patch) | |
tree | 3d3d2e90a5b77067d39d2a41241496bdc54a6fa5 /src/plugins/acl/acl.c | |
parent | 13a83ef4d4d05211601b023fa667b5332850fccc (diff) |
acl-plugin: set ACL heap within the exported functions that might alloc memory
The functions which get called by other plugins need to set the acl plugin heap,
such that the other plugins do not have to think about it.
Change-Id: I673073f17116ffe444c163bf3dff40821d0c2686
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/plugins/acl/acl.c')
-rw-r--r-- | src/plugins/acl/acl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/acl/acl.c b/src/plugins/acl/acl.c index 365d8521760..c1c27c12c2f 100644 --- a/src/plugins/acl/acl.c +++ b/src/plugins/acl/acl.c @@ -129,6 +129,13 @@ acl_set_heap (acl_main_t * am) return oldheap; } +void * +acl_plugin_set_heap () +{ + acl_main_t *am = &acl_main; + return acl_set_heap (am); +} + void acl_plugin_acl_set_validate_heap (acl_main_t * am, int on) { |