commit | 722072d65abb1b9fa709f5c7ae8afd98ef5ab7af | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Mon Mar 21 17:10:12 2016 -0700 |
committer | Yabin Cui <yabinc@google.com> | Tue Mar 22 16:43:24 2016 -0700 |
tree | c19eb6837ed584d36e63a9cf10cb15d44280c362 | |
parent | 6212e5dfada2ce1cd8b4915389452cba09e75b69 [diff] [blame] |
CloseArchive() to free memory when OpenArchive fails. Bug: 26962895 Change-Id: I42418eee320ddae857b42572690316c53f638e85
diff --git a/tests/libs/bionic_tests_zipalign.cpp b/tests/libs/bionic_tests_zipalign.cpp index dbbfd7c..a72820f 100644 --- a/tests/libs/bionic_tests_zipalign.cpp +++ b/tests/libs/bionic_tests_zipalign.cpp
@@ -138,6 +138,7 @@ int32_t return_value = OpenArchive(argv[2], &handle); if (return_value != 0) { + CloseArchive(handle); fprintf(stderr, "Unable to open '%s': %s\n", argv[2], ErrorCodeString(return_value)); return false; }