[LLVMbugs] [Bug 19549] New: Leak in c-index-test.c's makeClientContainer

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 24 13:36:35 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140424/be5a1ee8/attachment.html>


More information about the llvm-bugs mailing list