Re: r260831 - Fix a leak in the generated code for attributes with strings.

2016-02-13 Thread Aaron Ballman via cfe-commits
On Sat, Feb 13, 2016 at 1:11 PM, Benjamin Kramer via cfe-commits wrote: > Author: d0k > Date: Sat Feb 13 12:11:49 2016 > New Revision: 260831 > > URL: http://llvm.org/viewvc/llvm-project?rev=260831&view=rev > Log: > Fix a leak in the generated code for attributes with strings. > > Storing std::str

r260831 - Fix a leak in the generated code for attributes with strings.

2016-02-13 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Sat Feb 13 12:11:49 2016 New Revision: 260831 URL: http://llvm.org/viewvc/llvm-project?rev=260831&view=rev Log: Fix a leak in the generated code for attributes with strings. Storing std::strings in attributes simply doesn't work, we never call the destructor. Use an array of Str