Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-3111

util_create() doesnt free memory assigned to "uri"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.9.2, 3.2.13, 3.4.3, 3.5.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2017-02-13

      Following is from util_create(), util_name() allocates memory to uri which isn't freed:

              if ((uri = util_name(session, *argv, "table")) == NULL)                  
                      return (1);                                                      
                                                                                       
              if ((ret = session->create(session, uri, config)) != 0)                  
                      return (util_err(session, ret, "%s: session.create", uri));      
              return (0);  
      

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: