* [binutils-gdb] gas: Fix memory leaks in gen-sframe.c
@ 2024-04-12 10:56 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-04-12 10:56 UTC (permalink / raw)
To: binutils-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3d67591c6ff0443e36cbc38ece082cc240e87bf6
commit 3d67591c6ff0443e36cbc38ece082cc240e87bf6
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Apr 11 04:26:34 2024 -0700
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.
Diff:
---
gas/gen-sframe.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gas/gen-sframe.c b/gas/gen-sframe.c
index 75781fc8ccb..25b858e432b 100644
--- a/gas/gen-sframe.c
+++ b/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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-12 10:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-12 10:56 [binutils-gdb] gas: Fix memory leaks in gen-sframe.c H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).