Fix double-free typo in print_error()