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: kreme...@apple.com
          Reporter: xiangzha...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to