From f102f05ec078a0ceb73ddba79b5aba784d9fff3e Mon Sep 17 00:00:00 2001 From: cold-brewed Date: Mon, 24 Jul 2023 11:48:51 -0400 Subject: [PATCH] rtc: Fix crash when closing device --- src/device/isartc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/device/isartc.c b/src/device/isartc.c index 280c6210a..dfa4d179d 100644 --- a/src/device/isartc.c +++ b/src/device/isartc.c @@ -608,9 +608,6 @@ isartc_close(void *priv) io_removehandler(dev->base_addr, dev->base_addrsz, dev->f_rd, NULL, NULL, dev->f_wr, NULL, NULL, dev); - if (dev->nvr.fn != NULL) - free(dev->nvr.fn); - free(dev); }