summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-01-26 18:59:35 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-01-26 18:59:35 +0000
commit5ffb4b95690577952cc7ad124bfe216bf2010ec6 (patch)
tree73eb518861d418afcea38b8da874b549da1c8034
parent241a362ec54431fd430fdec3002da0f5fe4f148e (diff)
parent6c0277420f8f448108ef9e85ed86df0eda9d4359 (diff)
downloaddalvik-android14-d1-s6-release.tar.gz
Change-Id: Id6324f87d81aa46cb05ba6742f7e31e43d272172
-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;