Close file descriptors in the TestMemory test.

Bug: 67650395
Test: Loop the affected test 1000 times and verified the bug is fixed.
Change-Id: Ib4b7ed567828511769fd7cb52e51e1e5d560e454
diff --git a/runtime/test/TestMemory.cpp b/runtime/test/TestMemory.cpp
index 74931ca..6428b27 100644
--- a/runtime/test/TestMemory.cpp
+++ b/runtime/test/TestMemory.cpp
@@ -134,6 +134,9 @@
               Result::NO_ERROR);
     ASSERT_EQ(execution2.compute(), Result::NO_ERROR);
     ASSERT_EQ(CompareMatrices(expected3, *reinterpret_cast<Matrix3x4*>(outputData + offsetForActual)), 0);
+    close(weightsFd);
+    close(inputFd);
+    close(outputFd);
 }
 
 TEST_F(MemoryTest, TestFd) {