summaryrefslogtreecommitdiff
path: root/floss/build/container-build-image.py
diff options
context:
space:
mode:
author Hui Peng <phui@google.com> 2022-12-20 19:50:39 +0000
committer Hui Peng <phui@google.com> 2022-12-23 07:40:07 +0000
commit323643d31d1da833e50c8583e9759b4d01034e47 (patch)
tree27ba51d5a98f3af977aac89164cb2d3b77dd219c /floss/build/container-build-image.py
parent712a1470271e068ee3ba32fde44bceb24592187b (diff)
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
Diffstat (limited to 'floss/build/container-build-image.py')
0 files changed, 0 insertions, 0 deletions