changeset 9685:f9b804d9b983

8204895: Better icon support Reviewed-by: prr, mschoene, aghaisas, rhalade
author serb
date Tue, 29 Jan 2019 10:15:46 +0000
parents e8b8ef2ce891
children fc0d98b4f146
files src/solaris/native/sun/awt/awt_UNIXToolkit.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/awt/awt_UNIXToolkit.c	Tue Jan 29 09:56:33 2019 +0000
+++ b/src/solaris/native/sun/awt/awt_UNIXToolkit.c	Tue Jan 29 10:15:46 2019 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004, 2010, 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
@@ -206,6 +206,7 @@
         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;
         }