commit | df7d84a04972e4f93fd075c979e45415062cc6a9 | [log] [tgz] |
---|---|---|
author | liuchao <liuchao741@huawei.com> | Fri Nov 11 16:46:10 2016 +0800 |
committer | liuchao <liuchao741@huawei.com> | Wed Nov 16 09:26:53 2016 +0800 |
tree | 1ebc296d84b21a7b3caffc7cd1d31e0083178f5f | |
parent | 9fe1a712fbc0dc52e101105d5014b147fe1125d3 [diff] |
Add else branch to avoide fclose(NULL) This fixes a potential NULL-pointer reference crash in case cpu_file == NULL and pass NULL to fclose(). Test: mm -j 8 Change-Id: Ib3267676bea910533bd85ac2935efe02d361fc6b