Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverity Scan (CID 1087246) [/libtizcore/src/tizcore.c:instantiate_component] : Resource leak #222

Closed
tizonia opened this issue Mar 6, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@tizonia
Copy link
Owner

commented Mar 6, 2016

  • CID : 1087246
  • Type : Resource leak
  • Impact : High
  • Status : New
  • First Detected : 09/11/13
  • Classification : Unclassified
  • Severity : Unspecified
  • Component : libtizcore
  • Category : Resource leaks
  • File : /libtizcore/src/tizcore.c
  • Function : instantiate_component
968
        7. Condition OMX_ErrorNone != (rc = (*p_hdl->SetCallbacks)((OMX_HANDLETYPE)p_hdl, ap_msg->p_callbacks, ap_msg->p_app_data)), taking true branch
 969          if (OMX_ErrorNone
 970              != (rc = p_hdl->SetCallbacks ((OMX_HANDLETYPE) p_hdl,
 971                                            ap_msg->p_callbacks,
 972                                            ap_msg->p_app_data)))
 973            {
 974              TIZ_LOG (TIZ_PRIORITY_ERROR, "[%s] : Call to SetCallbacks failed",
 975                       tiz_err_to_str (rc));

CID 1087246 (#3 of 3): Resource leak (RESOURCE_LEAK)
8. leaked_storage: Variable p_dl_hdl going out of scope leaks the storage it points to.
 976              return rc;
 977            }
 978
 979          *(ap_msg->pp_hdl) = p_hdl;
 980          p_reg_item->p_hdl = p_hdl;
 981          p_reg_item->p_dl_hdl = p_dl_hdl;
 982        }
 983    }
 984  else

@tizonia tizonia added the bug label Mar 6, 2016

@juanrubio juanrubio closed this in afe6317 Mar 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.