mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
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:
parent
8bad8d5133
commit
3d67591c6f
@ -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…
Reference in New Issue
Block a user