[llvm-bugs] [Bug 31475] New: Clang Static Analyzer can *NOT* check Memory-leak for glib API
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 26 21:31:18 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31475
Bug ID: 31475
Summary: Clang Static Analyzer can *NOT* check Memory-leak for
glib API
Product: clang
Version: 3.9
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: xiangzhai83 at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Hi llvm developers,
void *ptr = malloc(3);
without free(ptr) Clang Static Analyzer is able to check Memory-leak issue, but
gchar *str = g_new0(gchar, 3);
without g_free(str) it can *NOT* be checked!
Regards,
Leslie Zhai
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161227/4703966e/attachment.html>
More information about the llvm-bugs
mailing list