http://llvm.org/bugs/show_bug.cgi?id=19549

            Bug ID: 19549
           Summary: Leak in c-index-test.c's makeClientContainer
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

>From c-index-test.c, makeClientContainer:

  /* FIXME: free these.*/
  newStr = (char *)malloc(strlen(name) +
                          digitCount(line) + digitCount(column) + 3);
  sprintf(newStr, "%s:%d:%d", name, line, column);
  return (CXIdxClientContainer)newStr;


Fixing this isn't obvious, since CXIdxClientContainer is an exposed type, so
changing it isn't abi-compatible.

This blocks enabling LSan. Giving to Argyrios since he wrote this (in r142233).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to