From 9ff211e80a55b7856b74bab3d724f2c69722dc1c Mon Sep 17 00:00:00 2001 From: serb Date: Mon, 10 Sep 2018 19:31:16 -0700 Subject: [PATCH] 8204895: Better icon support Reviewed-by: prr, mschoene, aghaisas, rhalade --- src/solaris/native/sun/awt/awt_UNIXToolkit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/solaris/native/sun/awt/awt_UNIXToolkit.c b/src/solaris/native/sun/awt/awt_UNIXToolkit.c index c8b29f3bd..4879f7456 100644 --- a/src/solaris/native/sun/awt/awt_UNIXToolkit.c +++ b/src/solaris/native/sun/awt/awt_UNIXToolkit.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -209,6 +209,7 @@ Java_sun_awt_UNIXToolkit_load_1stock_1icon(JNIEnv *env, jobject this, detail_str = (char *)SAFE_SIZE_ARRAY_ALLOC(malloc, sizeof(char), len + 1); if (detail_str == NULL) { + free(stock_id_str); JNU_ThrowOutOfMemoryError(env, "OutOfMemoryError"); return JNI_FALSE; } -- GitLab