You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by ga...@apache.org on 2020/03/24 05:38:41 UTC
[orc] branch master updated: Fix memory leak in TestByteRle.cc
This is an automated email from the ASF dual-hosted git repository.
gangwu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/master by this push:
new 1239770 Fix memory leak in TestByteRle.cc
1239770 is described below
commit 1239770276ecfac8ee5db1f2c46800409c682c71
Author: Ion GaztaƱaga <ig...@gmail.com>
AuthorDate: Tue Mar 24 06:38:32 2020 +0100
Fix memory leak in TestByteRle.cc
ASAN reports a memory leak in this test. The "data" buffer is allocated using new but not deallocated at the end.
---
c++/test/TestByteRle.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/c++/test/TestByteRle.cc b/c++/test/TestByteRle.cc
index 65d1551..bea9679 100644
--- a/c++/test/TestByteRle.cc
+++ b/c++/test/TestByteRle.cc
@@ -1509,6 +1509,7 @@ TEST(BooleanRle, seekBoolAndByteRLE) {
<< "Output wrong at " << i;
}
+ delete [] data;
delete [] decodedData;
}
} // namespace orc