]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix memory leak in vectorizable_store
authorRichard Biener <rguenther@suse.de>
Thu, 18 Jan 2024 12:04:17 +0000 (13:04 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 18 Jan 2024 13:13:03 +0000 (14:13 +0100)
commit5b421c2a5b429fcebd7ee6444a5677633df0f28a
treee366013981a89689a850aaf48b556ad1f11e900e
parentf2872e00f61a5a333fa22e651d37d3b2035ac41f
Fix memory leak in vectorizable_store

The following fixes a memory leak in vectorizable_store which happens
because the functions populating gvec_oprnds[i] will call .create ()
on the incoming vector, leaking what we've previously allocated.

* tree-vect-stmts.cc (vectorizable_store): Do not allocate
storage for gvec_oprnds elements.
gcc/tree-vect-stmts.cc