changeset 13348:c781c1726b62

8204895: Better icon support Reviewed-by: prr, mschoene, aghaisas, rhalade
author serb
date Mon, 10 Sep 2018 19:31:16 -0700
parents d8b98efabf57
children 2cf0eb69a288
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	Mon Sep 10 19:37:53 2018 +0100
+++ b/src/solaris/native/sun/awt/awt_UNIXToolkit.c	Mon Sep 10 19:31:16 2018 -0700
@@ -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 @@
         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;
         }