In my code, wherever a `FileInputStream` is required as an argument, I'm doing this: 

```
new obj(new FileInputStream(fileLocation));

```

As I am not assigning the `FileInputStream` to any reference variable, I am not closing it using `close()` method. 

Does this result in memory leaks?

Aren't the resources released by the `FileInputStream` in the above approach?