Only one place that was using ram_new was missing to call ram_close in the end.
Attach a file by drag & drop or click to upload