On 06/17/2016 07:14 AM, Martin Liška wrote:
Hi.
Following simple patch fixes a newly introduced memory leak.
Patch survives regression tests and bootstraps on x86_64-linux.
Ready from trunk?
Thanks,
Martin
0001-Fix-memory-leak-in-tree-ssa-reassoc.c.patch
From a2e6be16d7079b744db4d383b8317226ab53ff58 Mon Sep 17 00:00:00 2001
From: marxin <mli...@suse.cz>
Date: Fri, 17 Jun 2016 12:26:58 +0200
Subject: [PATCH] Fix memory leak in tree-ssa-reassoc.c
gcc/ChangeLog:
2016-06-17 Martin Liska <mli...@suse.cz>
* tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
OK.
And more generally, conversion from vec to auto_vec to fix memory leaks
or eliminate explicit memory management is pre-approved.
Jeff