Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 325 by [email protected]: Leak of size 0 reported as leak of size 1
http://code.google.com/p/address-sanitizer/issues/detail?id=325

#include <stdlib.h>

int main() {
  void * volatile p = malloc(0);
  return 0;
}

ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1 byte(s) in 1 object(s) allocated from:

This is confusing and may lead debugging down the wrong path.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to