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 1352362) [/player/src/tizgraphutil.cpp:set_content_uri] : Resource leak #230

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 : 1352362
  • Type : Resource leak
  • Impact : High
  • Status : New
  • First Detected : 02/29/16
  • Classification : Unclassified
  • Severity : Unspecified
  • Component : player
  • Category : Resource leaks
  • File : /player/src/tizgraphutil.cpp
  • Function : set_content_uri
608    const size_t uri_offset = offsetof (OMX_PARAM_CONTENTURITYPE, contentURI);
609    strncpy ((char *)p_uritype + uri_offset, uri.c_str (), uri_len);
610    p_uritype->contentURI[uri_len] = '\0';
611
612    rc = OMX_SetParameter (handle, OMX_IndexParamContentURI, p_uritype);
613
614    tiz_mem_free (p_uritype);
615    p_uritype = NULL;
616  }

CID 1352362 (#1 of 1): Resource leak (RESOURCE_LEAK)
7. leaked_storage: Variable p_uritype going out of scope leaks the storage it points to.
617  return rc;
618}

@tizonia tizonia added the bug label Mar 6, 2016

@juanrubio juanrubio closed this in a1d7947 Mar 12, 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.