jdk/src/java.base/share/native/libjimage/ImageNativeSubstrate.cpp
changeset 35698 409a5492076d
parent 33825 e7ed5c869dc7
child 35784 ddeed53a1c5a
--- a/jdk/src/java.base/share/native/libjimage/ImageNativeSubstrate.cpp	Tue Feb 02 11:50:55 2016 -0800
+++ b/jdk/src/java.base/share/native/libjimage/ImageNativeSubstrate.cpp	Tue Feb 02 12:50:03 2016 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2016, 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
@@ -210,7 +210,7 @@
     // Locate resource location data.
     ImageLocation location;
     bool found = reader->find_location(path, location);
-    delete path;
+    delete[] path;
     // Resource not found.
     if (!found) return NULL;
     // Expand stream into array.