commit | c32d7bae15c15155f9ab0281ae0496952795e73c | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Thu Apr 27 18:39:02 2017 -0700 |
committer | Andreas Gampe <agampe@google.com> | Fri Apr 28 10:37:55 2017 -0700 |
tree | 638f38df3ec6569c6c233fd3de39ccb872aa913c | |
parent | 608969b33f50644a22576b3677b4f9f6e23aa1a3 [diff] |
fc_sort: Fix leaks Use the getline API correctly: keep a single buffer as long as possible, and let the callee handle re-allocation. Move the final free out of the loop. Release the head of the linked list. Bug: 37757586 Test: ASAN_OPTIONS= SANITIZE_HOST=address mmma system/sepolicy Change-Id: I42424acba7cd68c1b9a7a43e916a421ac3e253f7