Update doc for the sparse module
Fix mismatched free/delete