clear freed pointers.

This commit is contained in:
Jean-François DEL NERO
2023-11-06 09:40:52 +01:00
parent 6acd3b7110
commit 5ff8ceb914
@@ -177,6 +177,9 @@ int get_next_Centurion_MFM_sector(HXCFE* floppycontext,HXCFE_SIDE * track,HXCFE_
if(sector->input_data_index)
free(sector->input_data_index);
sector->input_data = NULL;
sector->input_data_index = NULL;
floppycontext->hxc_printf(MSG_ERROR, "get_next_Centurion_MFM_sector : Allocation error !\n");
return -1;
}