Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5368

Memory leak in C++ server metadata handler

    XMLWordPrintableJSON

    Details

      Description

      When receiving server metadata response, a protobuf ServerMetaResp object is dynamically allocated but never freed.

      Since for this handler, there's no need to keep the instance attached to the handler (content is copied over by the MetaData class), a reference is enough and allocation can be done on the stack.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                laurent Laurent Goujon
                Reporter:
                laurent Laurent Goujon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: