Re: [PATCH] release pointer_query cache when done (PR 98937)

2021-02-03 Thread Richard Biener via Gcc-patches
On Wed, Feb 3, 2021 at 1:15 AM Martin Sebor wrote: > > On 2/2/21 2:29 PM, David Malcolm wrote: > > On Tue, 2021-02-02 at 12:57 -0700, Martin Sebor via Gcc-patches wrote: > >> The strlen pass initializes its pointer_query member object with > >> a cache consisting of a couple of vec's. Because vec

Re: [PATCH] release pointer_query cache when done (PR 98937)

2021-02-02 Thread Martin Sebor via Gcc-patches
On 2/2/21 2:29 PM, David Malcolm wrote: On Tue, 2021-02-02 at 12:57 -0700, Martin Sebor via Gcc-patches wrote: The strlen pass initializes its pointer_query member object with a cache consisting of a couple of vec's.  Because vec doesn't implement RAII its memory must be explicitly released to a

Re: [PATCH] release pointer_query cache when done (PR 98937)

2021-02-02 Thread David Malcolm via Gcc-patches
On Tue, 2021-02-02 at 12:57 -0700, Martin Sebor via Gcc-patches wrote: > The strlen pass initializes its pointer_query member object with > a cache consisting of a couple of vec's.  Because vec doesn't > implement RAII its memory must be explicitly released to avoid > memory leaks.  The attached pa

[PATCH] release pointer_query cache when done (PR 98937)

2021-02-02 Thread Martin Sebor via Gcc-patches
The strlen pass initializes its pointer_query member object with a cache consisting of a couple of vec's. Because vec doesn't implement RAII its memory must be explicitly released to avoid memory leaks. The attached patch adds a dtor to the strlen_dom_walker to do that. Tested on x86_64-linux a