I've always felt like "memory leak" wasn't the proper term for GC'ed languages.
If you forget to free a malloc'ed buffer, yeah, you're leaking memory.
Here, in the example given, well, the developer would be doing something stupid (i.e. keep track of something created at each request in a global variable). This isn't a leak per se.
I mean, it's not a memory management bug you can fix: it's a behavior that's inherently not sustainable and that will need to be changed.
If you forget to free a malloc'ed buffer, yeah, you're leaking memory.
Here, in the example given, well, the developer would be doing something stupid (i.e. keep track of something created at each request in a global variable). This isn't a leak per se.
I mean, it's not a memory management bug you can fix: it's a behavior that's inherently not sustainable and that will need to be changed.