#fixed code
                              public static void main(String[] args) throws UnsupportedAudioFileException, IOException, InterruptedException {
    Audio audio = Audio.getInstance();
    audio.playSound(audio.getAudioStream("./etc/Bass-Drum-1.wav"), -10.0f);
    audio.playSound(audio.getAudioStream("./etc/Closed-Hi-Hat-1.wav"), -8.0f);
    
    System.out.println("Press Enter key to stop the program...");
    try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
      br.read();
    }
    audio.stopService();
  }
#vulnerable code 
                              public static void main(String[] args) throws UnsupportedAudioFileException, IOException {
    Audio.playSound(Audio.getAudioStream("./etc/Bass-Drum-1.wav"), -10.0f);
    Audio.playSound(Audio.getAudioStream("./etc/Closed-Hi-Hat-1.wav"), -8.0f);
    
    System.out.println("Press Enter key to stop the program...");
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    br.read();
    Audio.stopService();
  } 
                            #location 7 
                            #vulnerability type RESOURCE_LEAK