{"json_modified": "2016-03-28T08:45:16.595121", "uuid": "6e65c866-eb46-465f-86ae-a5518703caa1", "title": "Memory Management", "url": "/en-US/docs/Mozilla/js-ctypes/Using_js-ctypes/Memory_Management", "tags": ["js-ctypes"], "translations": [], "modified": "2016-02-20T17:22:21", "label": "Memory Management", "localization_tags": [], "locale": "en-US", "id": 151331, "last_edit": "2016-02-20T17:22:18", "summary": "If JS code creates a structure or an array, that memory\u00a0will be valid as long as the JS object stays alive. Pointers to that memory must be carefully managed to make sure the underlying memory is still referenced.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Memory_management", "title": "Memory management"}, {"id": "Keeping_objects_alive", "title": "Keeping objects alive"}, {"id": "What_won't_keep_objects_alive", "title": "What won't keep objects alive"}, {"id": "Closures", "title": "Closures"}, {"id": "When_in_doubt_malloc()", "title": "When in doubt, malloc()"}], "slug": "Mozilla/js-ctypes/Using_js-ctypes/Memory_Management", "review_tags": ["technical"]}