Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-117

plug mem leak from flex parser for C++

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • c++
    • None

    Description

      Valgrind reports a leak coming from the flex parser generated code.

      The flex-generated lexer allocates memory to use for its state stack. Examining this code it is clear that once allocated, the stack is never freed. Since I cannot easily replace flex code, I inserted the code to free the stack as a lexer rule.

      Valgrind is happy with the result.

      Attachments

        1. AVRO-117.patch
          3 kB
          Scott Banachowski

        Activity

          People

            sbanacho Scott Banachowski
            sbanacho Scott Banachowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: