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

Fix memory leak of returned value of afb_x2_req_application_id

XMLWordPrintable

      According to afb_x2_req.h,
      returned value of afb_req_x2_get_application_id must be freed by the caller.
      Window Manager uses this function, so need to release the returned value.

       

      /**
       * Get the application identifier of the client application for the
       * request 'req'.
       *
       * Returns the application identifier or NULL when the application
       * can not be identified.
       *
       * The returned value if not NULL must be freed by the caller
       *
       * @param req the request
       *
       * @return the string for the application id of the client MUST BE FREED
       */
      static inline
      char *afb_req_x2_get_application_id(                                                                                                                                                                                                                                                                                         
                  struct afb_req_x2 *req)
      {
          return req->itf->get_application_id(req);
      }
      

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

            knimitz Kazumasa Mitsunari
            knimitz Kazumasa Mitsunari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: