commit | bd75d8f1ab42e6d035cd3c549b3c5e731363ab27 | [log] [tgz] |
---|---|---|
author | Adam Shih <adamshih@google.com> | Thu Mar 02 14:52:50 2023 +0800 |
committer | Adam Shih <adamshih@google.com> | Thu Mar 02 14:52:50 2023 +0800 |
tree | 052b984c47ccd8fd6ebad933b011ddbbfd505db3 | |
parent | 29fdb2cffaf7b0fd148548c9b208be3384c9f05b [diff] |
close stream after use Bug: 240530709 Test: adb bugreport Change-Id: I251a0f8a8e7d6a233b201a0a79df6c1bca137cd0
diff --git a/insmod/pixel_dump.cpp b/insmod/pixel_dump.cpp index 3bf3d6e..aaaae01 100644 --- a/insmod/pixel_dump.cpp +++ b/insmod/pixel_dump.cpp
@@ -98,6 +98,8 @@ std::ifstream src(SrcDir, std::ios::binary); std::ofstream dst(DestDir, std::ios::binary); dst << src.rdbuf(); + src.close(); + dst.close(); return; }