commit | e3c32e0d2f120deca4809a282bea914e5d5b0a15 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Nov 05 13:47:28 2018 -0800 |
committer | Josh Gao <jmgao@google.com> | Mon Nov 05 13:59:46 2018 -0800 |
tree | 64c7370283066e5d809b20c61b05766337b5fe39 | |
parent | 298fa3264f197fb0c871499c3ec16a0b0ff39580 [diff] |
Avoid double close in delete_dir_contents. fdopendir takes ownership of the file descriptor, leading to it being closed by both unique_fd's destructor and closedir. Test: treehugger Change-Id: Ibd193e988c77c5323720531445f334c0795c68b9