commit | e3d76d9c1d0848c7b57e73aed3c5a1aa3835139f | [log] [tgz] |
---|---|---|
author | Dmitry Shmidt <dimitrysh@google.com> | Thu Feb 01 00:34:54 2018 +0000 |
committer | Dmitry Shmidt <dimitrysh@google.com> | Mon Feb 05 10:32:57 2018 -0800 |
tree | f9ec9902886809f3985c56a92d5a5dab2f4becc0 | |
parent | 18db0829f5c0e6b67f9593d166df5fc357c9d4eb [diff] |
wpa_supplicant: Free config only if it was allocated in same call (cherry-picked from 9c5fe742a25d2361b49051aef5b1ed0083494b6c) If option -I:config points to a non-existing file, the the previously allocated config must not be freed. Avoid use of freed memory in such an error case by skipping the incorrect freeing operation. Bug: 72740284 Test: Manual Change-Id: I11f36fb5f77b3fca033268c8d16656679c356054 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>