diff options
author | Richard Biener <rguenther@suse.de> | 2023-02-23 14:09:04 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-02-23 15:56:54 +0100 |
commit | 426b0ae103894d1f1bd82e5f049ff8a53bd82a8d (patch) | |
tree | 4da02e2deed7d495a65863e1c91578950840a307 /gcc/doc/cpp.texi | |
parent | 9f9a7095d910379cd86ac45f81c79b363f859996 (diff) | |
download | gcc-426b0ae103894d1f1bd82e5f049ff8a53bd82a8d.zip gcc-426b0ae103894d1f1bd82e5f049ff8a53bd82a8d.tar.gz gcc-426b0ae103894d1f1bd82e5f049ff8a53bd82a8d.tar.bz2 |
Fix memory leak in PTA
When handle_lhs_call calls .create on the passed in vector it leaks
any previous allocated storage. Avoid doing that and instead rely
on the caller for memory management, just truncate the vector.
* tree-ssa-structalias.cc (handle_lhs_call): Do not
re-create rhsc, only truncate it.
Diffstat (limited to 'gcc/doc/cpp.texi')
0 files changed, 0 insertions, 0 deletions