Resource leak: overwriting config_parser with NULL

XMLWordPrintableJSON

    • Storage Engines
    • None
    • None

      In kp_configure function of key_provider.c

      Memory is allocated to config_parser with wtext->config_parser_open_arg(wtext, NULL, config, &config_parser)

       

      Coverity:

      Resource leak

      The system resource will not be reclaimed and reused, reducing the future availability of the resource. Leak of memory or pointers to system resources
      /ext/test/key_provider/key_provider.c:369: RESOURCE_LEAK 184207 Assuming resource "config_parser" is not freed or pointed-to in unimplemented function "config_parser->next".
      /ext/test/key_provider/key_provider.c:399: RESOURCE_LEAK 184207 Assuming resource "config_parser" is not freed or pointed-to in unimplemented function "config_parser->close".
      /ext/test/key_provider/key_provider.c:401: RESOURCE_LEAK 184207 Variable "config_parser" going out of scope leaks the storage it points to.

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

              Created:
              Updated:
              Resolved: