#vulnerable code 
                             public String getIOSDeviceProductTypeAndVersion(String udid) throws InterruptedException, IOException {
		System.out.println("ideviceinfo --udid " + udid + " | grep ProductType");
		System.out.println("ideviceinfo --udid " + udid + " | grep ProductVersion");
		String productType = commandPrompt.runCommand("ideviceinfo --udid " + udid);
		System.out.println(productType);
		String version = commandPrompt.runCommand("ideviceinfo --udid " + udid);
		System.out.println(version);
		System.out.println(productType.concat(version));
		return productType.concat(version);
	} 
                            #location 6 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             public String getIOSDeviceProductTypeAndVersion(String udid) throws InterruptedException, IOException {
		return commandPrompt.runCommandThruProcessBuilder("ideviceinfo --udid "+udid+" | grep ProductType");
	}