added non-magic-dependant double-free detection via 'status' variable