rtc: Fix crash when closing device

This commit is contained in:
cold-brewed
2023-07-24 11:48:51 -04:00
parent 19afe0c312
commit f102f05ec0

View File

@@ -608,9 +608,6 @@ isartc_close(void *priv)
io_removehandler(dev->base_addr, dev->base_addrsz, io_removehandler(dev->base_addr, dev->base_addrsz,
dev->f_rd, NULL, NULL, dev->f_wr, NULL, NULL, dev); dev->f_rd, NULL, NULL, dev->f_wr, NULL, NULL, dev);
if (dev->nvr.fn != NULL)
free(dev->nvr.fn);
free(dev); free(dev);
} }