Project

General

Profile

Actions

Bug #3673

closed

ValidatorConfig: memory leak in HyperKeyLocatorNameChecker

Added by Junxiao Shi almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Utils
Target version:
Start date:
07/16/2016
Due date:
% Done:

100%

Estimated time:
3.00 h

Description

Snippet to reproduce:

// g++ -o x -std=c++0x x.cpp $(pkg-config --cflags --libs libndn-cxx)
#include <ndn-cxx/security/validator-config.hpp>

int main() {
  ndn::ValidatorConfig validator;
  validator.load(
    R"CONFIG(
      rule
      {
        id "rule"
        for data
        checker
        {
          type hierarchical
          sig-type rsa-sha256
        }
      }
    )CONFIG", "filename"
  );

  return 0;
}

Valgrind reports RegexBackrefManager allocated by RegexTopMatcher allocated by HyperKeyLocatorNameChecker is definitely lost.

Actions

Also available in: Atom PDF