gas: Fix memory leaks in gen-sframe.c

* gen-sframe.c (sframe_xlate_ctx_cleanup): Call XDELETE on
	xlate_ctx->cur_fre.
	(create_sframe_all): Call XDELETE on xlate_ctx after use.
This commit is contained in:
H.J. Lu 2024-04-11 04:26:34 -07:00
parent 8bad8d5133
commit 3d67591c6f

View File

@ -847,6 +847,8 @@ sframe_xlate_ctx_cleanup (struct sframe_xlate_ctx *xlate_ctx)
}
}
XDELETE (xlate_ctx->cur_fre);
sframe_xlate_ctx_init (xlate_ctx);
}
@ -1360,6 +1362,8 @@ create_sframe_all (void)
sframe_fde_link (sframe_fde);
}
}
XDELETE (xlate_ctx);
}
void