dcoughlin added a comment.

In https://reviews.llvm.org/D23375#527291, @andrewmw94 wrote:

> One more thing, obviously it should mimic malloc/free's behavior in 
> complaining about delete/new being used.  Should it also complain about 
> free/malloc being used?  I can't  imagine that would be something people 
> would usually intend to do, but I don't think it's really "incorrect."  
> Thought?


I'm not familiar with linux kernel programming. Is `free()` available in the 
kernel? If someone did define their own `free()` and used it with `kmalloc`'d 
memory, would they consider this a false positive?


https://reviews.llvm.org/D23375



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

Reply via email to