summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-01-26 04:01:16 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-01-26 04:01:16 +0000
commit6c0277420f8f448108ef9e85ed86df0eda9d4359 (patch)
tree73eb518861d418afcea38b8da874b549da1c8034
parente42665cef4abc8856a5a1d2917581d9140fbf0ab (diff)
parentb6b1b529e505b73a29c9f3501708768c741f20e8 (diff)
downloaddalvik-android14-release.tar.gz
Change-Id: Ic3dcdcdb515de3d867497dc89c64928638811d93
-rw-r--r--tools/hprof-conv/HprofConv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hprof-conv/HprofConv.c b/tools/hprof-conv/HprofConv.c
index c8847c944..ff49428af 100644
--- a/tools/hprof-conv/HprofConv.c
+++ b/tools/hprof-conv/HprofConv.c
@@ -182,7 +182,7 @@ static int ebEnsureCapacity(ExpandBuf* pBuf, int size)
unsigned char* newStorage = realloc(pBuf->storage, newSize);
if (newStorage == NULL) {
fprintf(stderr, "ERROR: realloc failed on size=%d\n", newSize);
- return -1;
+ exit(1);
}
pBuf->storage = newStorage;