Previous 15994 Revisions Next

r7987 Friday 7th May, 2010 at 16:43:29 UTC by Firewave
[MULTICARD] Fixed memory leak
[src/mess/devices]multcart.c

src/mess/devices/multcart.c
r7986r7987
254254         /* Save the file name so that we can write the contents on unloading.
255255               If the RAM resource has no filename, we know that it was volatile only. */
256256         resource->filename = pool_strdup_lib(state->multicart->data->pool, astring_c(ram_pathname));
257         astring_free(ram_pathname);
257258         if (resource->filename == NULL)
258259            return MCERR_OUT_OF_MEMORY;
259260

Previous 15994 Revisions Next


© 1998-2018 The MESS Team