Fix memory leak of FileDescriptorInfo object.
Bug: 231366539
Test: After fixing, there is no 192 byte leak present in most zygote
Test: forked processes.
Change-Id: Ie88e2fac76ba0da92c434d2db107885253855696
Merged-In: Ie88e2fac76ba0da92c434d2db107885253855696
(cherry picked from commit 60e4b9c43c8985a96ececf8b15e1f7e44f6b4c8f)
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