summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-24 18:11:51 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-24 18:11:51 +0000
commit10533e47accc69d8ca592260f58fd8b02df55ba4 (patch)
tree73eb518861d418afcea38b8da874b549da1c8034
parentbcefe988b4ca1619a7b4e3450d9e76b090dd461b (diff)
parent6e0382981058446503efddd7c970111e59c7e550 (diff)
downloaddalvik-10533e47accc69d8ca592260f58fd8b02df55ba4.tar.gz
Snap for 9652768 from 6e0382981058446503efddd7c970111e59c7e550 to simpleperf-release
Change-Id: Id6b7c5a0d376eaadb164aaac8cf129cd8b2abbae
-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;