Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-4270

Fix potential memory leak in agl-compositor

XMLWordPrintable

      wet_main->parse_options-> .... ->strdup ->malloc 

      "config_file" memory is not released 

      "log" memory is not released

      When agl-compositor startup parameters contain socket and modules, the memory of socket_name and option_modules also needs to be released.

      So I implemented a function to release  backend, socket_name, log, config_file, option_modules, these  five pointers.

      To prevent the backend from being released again, I deleted the following two lines of code.

      • free(backend);
      • backend = NULL;

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            deup du erp
            deup du erp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: