commit | 35c25d3665f59b4773b45d43e26975a5312d70f1 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Jul 13 14:16:54 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Jul 13 14:16:54 2023 +0000 |
tree | 94a1d422ff04348450d90aec100fbbe9fa172fd7 | |
parent | f02ed4e5227ff6f6fbb276328c6faa4a0ea56e25 [diff] | |
parent | b8b8e2150337ec1655017cdeda25e0ec9223e1f9 [diff] |
Merge "Fix memory leak of FileDescriptorInfo object." into main
diff --git a/core/jni/fd_utils.cpp b/core/jni/fd_utils.cpp index 40f6e4f..5c71f69 100644 --- a/core/jni/fd_utils.cpp +++ b/core/jni/fd_utils.cpp
@@ -580,6 +580,7 @@ // TODO(narayan): This will be an error in a future android release. // error = true; // ALOGW("Zygote closed file descriptor %d.", it->first); + delete it->second; it = open_fd_map_.erase(it); } else { // The entry from the file descriptor table is still open. Restat