commit | 3ac6bae6cff09fb3b90459ca097dfb6b36679d2d | [log] [tgz] |
---|---|---|
author | Eino-Ville Talvala <etalvala@google.com> | Fri May 08 14:02:22 2020 -0700 |
committer | Eino-Ville Talvala <etalvala@google.com> | Fri May 08 14:02:22 2020 -0700 |
tree | 5c36a0f643d92f23868e726d41d665d38b3b6fc7 | |
parent | 929c3645336dd0e01d3f61ffaedc95fe417ab1bb [diff] |
Camera: Fix memory leak if malformed face data is received The unparceling code for face metadata in API1 dynamically allocates a camera_metadata structure, and a recent fix forgot to delete that structure in an error path. Fix this by making the metadata structure statically allocated; it's tiny anyway. Test: atest CtsCameraTestCases Bug: 155512103 Change-Id: I9b81cdb3ab47c7b6c94c6ed65213ddafef529dc9