/*
 * Copyright (c) 2017-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import java.io.*;

public class SimpleLeak {
  public void method(boolean v) {
    try {
      FileInputStream a = new FileInputStream("aaa");
      FileInputStream z = null;
      if (v) {
        z = new FileInputStream("bbb");
        z.read();
      }
      z.close();
    } catch (IOException e) {
      // do nothing
    }
  }
}
