Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 323643d3 authored by Hui Peng's avatar Hui Peng
Browse files

Improve the implementation of GetAclInterface

The current implementation of GetAclInterface allocates
a new acl_interface_t, initialize it and makes a new copy
upon return, which is unecessary.
This patch improves its implementation by reusing a static variable
and returns a reference to it.

Bug: 263277439
Test: refactoring, existing test pass
Change-Id: Ib6bc5de6a9e84419fd8019be5a7fd16fc0f1368d
parent 712a1470
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment