Browse Source

[2831] Close remaining pipe fd after using it

Mukund Sivaraman 12 years ago
parent
commit
52c3dae27c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/lib/util/tests/memory_segment_mapped_unittest.cc

+ 1 - 0
src/lib/util/tests/memory_segment_mapped_unittest.cc

@@ -411,6 +411,7 @@ TEST_F(MemorySegmentMappedTest, multiProcess) {
     // parent: wait for the completion of the child and checks the result.
     close(pipes[1]);
     EXPECT_EQ(0, parentReadState(pipes[0]));
+    close(pipes[0]);
 }
 
 TEST_F(MemorySegmentMappedTest, nullDeallocate) {