Coverity analysis defect 72714: Resource leak

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Leak of memory or pointers to system resources

      Defect 72714 (STATIC_C)
      Checker RESOURCE_LEAK (subcategory none)
      File: /src/mongo/client/remote_command_runner_impl.cpp
      Function mongo::<unnamed>::runDownconvertedFindCommand(mongo::DBClientConnection *, const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, const mongo::BSONObj &, mongo::BSONObj *)
      /src/mongo/client/remote_command_runner_impl.cpp, line: 109
      Variable "lpqRaw" going out of scope leaks the storage it points to.

                          return status;
      

            Assignee:
            Kaloian Manassiev
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: