commit | d169077c66752578c0046ebe7a001c00d7339014 | [log] [tgz] |
---|---|---|
author | Ruchi Kandoi <kandoiruchi@google.com> | Wed Nov 22 10:43:19 2017 -0800 |
committer | Ruchi Kandoi <kandoiruchi@google.com> | Wed Nov 22 19:00:31 2017 +0000 |
tree | 717dc1a8846a80c70f444aed5db26999dfb363bc | |
parent | f02c223b666fd9f6a15ccd1a8fc0d71c66d7c4ac [diff] |
Free config file buffer in case of error Test: Nfc enable/disable Fixes: 69636569 Change-Id: I484d045e1453488cc75ccd966f0c76b8459fc37d
diff --git a/halimpl/pn54x/utils/phNxpConfig.cpp b/halimpl/pn54x/utils/phNxpConfig.cpp index 9e8c7cb..05a26c4 100644 --- a/halimpl/pn54x/utils/phNxpConfig.cpp +++ b/halimpl/pn54x/utils/phNxpConfig.cpp
@@ -87,6 +87,7 @@ return file_size; } + delete[] buffer; return 0; }