Skip to content
Snippets Groups Projects
Commit 36be2a0e authored by Jakub Jelinek's avatar Jakub Jelinek
Browse files

driver: Fix memory leak [PR93019]


driver:finalize used by JIT clears the mdswitches pointer; if it was
allocated before, that leaks the memory.

2023-12-09  Costas Argyris  <costas.argyris@gmail.com>
	    Jakub Jelinek  <jakub@redhat.com>

	PR driver/93019
	* gcc.cc (driver::finalize): Call XDELETEVEC on mdswitches before
	clearing it.

Signed-off-by: default avatarCostas Argyris <costas.argyris@gmail.com>
parent 388ab039
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment