MC-133136 it isn't possible to directly check this in current releases, but the same code is present still.
The STBIWriteCallback instance that is created to save screenshots is never free'd after use, causing a very small memory leak. (This callback exists to fix
MC-121714). Simply adding a free call or putting it into the existing try-with-resources block would solve this.
In 1.13-pre3, the leak detector (-Dorg.lwjgl.util.Debug=true -Dorg.lwjgl.util.DebugAllocator=true) reports:
[LWJGL] 16 bytes leaked, thread 1 (Client thread), address: 0x2110000
at org.lwjgl.system.JNI.invokeV(Native Method)