]> git.nickg.me.uk Git - nvc.git/commit
vhpi: Free callbacks in remove
authorSean Anderson <seanga2@gmail.com>
Wed, 17 May 2023 21:26:39 +0000 (17:26 -0400)
committerNick Gasson <nick@nickg.me.uk>
Thu, 18 May 2023 17:31:25 +0000 (17:31 +0000)
commitd6e523a47f3dc1554b86a0b3b2c8dbc2e34f422c
treef10a18ce03306dd81e2d0bc4720d399b73be0fd0
parent7b0d9b1e8662b094e9700830f6816ec5fd865c56
vhpi: Free callbacks in remove

Callback handles should be released in vhpi_remove_cb. We can't just
free directly because callbacks may remove themselves while they
are executing. Instead, keep track of whether a callback is executing
and don't free the callback until after it's done.
src/vhpi/vhpi-model.c