From a2f77bd308ba7c4b022e179b367808f6418168ec Mon Sep 17 00:00:00 2001 From: yosoyubik Date: Thu, 12 Dec 2024 17:53:31 +0100 Subject: [PATCH] mesa: don't free pict before hamt get --- pkg/vere/io/mesa.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/vere/io/mesa.c b/pkg/vere/io/mesa.c index 84d6563370..b378930fac 100644 --- a/pkg/vere/io/mesa.c +++ b/pkg/vere/io/mesa.c @@ -2106,16 +2106,14 @@ _mesa_page_scry_jumbo_cb(void* vod_p, u3_noun res) if ( u3_none == pag ) { // TODO: mark as dead - u3z(res); - _mesa_free_pict(pic_u); u3_mesa_line* lin_u = _mesa_get_jumbo_cache(sam_u, nam_u); + _mesa_free_pict(pic_u); + u3z(res); if ( NULL == lin_u ) { return; } lin_u->typ_y = CTAG_BLOCK; _mesa_put_jumbo_cache(sam_u, nam_u, lin_u); - u3l_log("mesa: jumbo frame missing"); - log_pact(pac_u); return; } u3_noun pac, pas, pof;