Update misc.c

Fixed leak of fd in _read_file_data()
Modified _secure_wipe()