commit | c754792a07d340c30128b2fd064a58b1f15623da | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Aug 06 18:35:05 2015 -0700 |
committer | Tao Bao <tbao@google.com> | Sun Aug 09 22:35:49 2015 -0700 |
tree | ca0ba3c1e36c65ae807705da26feb13bfb3f047f | |
parent | e67104a6a778f70bd479e737b09eb32c835e250e [diff] |
Use unique_ptr and unique_fd to manager FDs. Clean up leaky file descriptors in uncrypt/uncrypt.cpp. Add unique_fd for open() and unique_file for fopen() to close FDs on destruction. Bug: 21496020 Change-Id: I0174db0de9d5f59cd43b44757b8ef0f5912c91a2