[9] RFR: 8140649: imageFile should use delete[] with new[]

2015-11-02 Thread Artem Smotrakov
Hello, Please review this small fix for jdk9/dev repo. It updates imageFile.cpp to use delete[] operator together with new[]. It also adds a check to ImageLocation::set_data(u1*) method to prevent a possible null-dereference. Bug: https://bugs.openjdk.java.net/browse/JDK-8140649 Webrev:

Re: [9] RFR: 8140649: imageFile should use delete[] with new[]

2015-11-02 Thread Jim Laskey (Oracle)
+1 > On Nov 2, 2015, at 9:30 AM, Artem Smotrakov > wrote: > > Hello, > > Please review this small fix for jdk9/dev repo. > > It updates imageFile.cpp to use delete[] operator together with new[]. It > also adds a check to ImageLocation::set_data(u1*) method to