DmitryPolukhin added a comment.

I didn't introduce a leak because I pass ownership of the Buffer to 
EnterTokenStream (i.e. pass true as the last argument OwnsTokens). ASan also 
doesn't report a leak with my patch. Original code didn't have double free 
because it used call EnterTokenStream with OwnsTokens == false.


http://reviews.llvm.org/D16572



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to