Browse Source

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.
master
H.J. Lu 2 years ago
parent
commit
3d67591c6f
  1. 4
      gas/gen-sframe.c

4
gas/gen-sframe.c

@ -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

Loading…
Cancel
Save