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 1087251) [/libtizplatform/src/tizsync.c:tiz_cond_init] : Resource leak #227

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 : 1087251
  • Type : Resource leak
  • Impact : High
  • Status : New
  • First Detected : 09/11/13
  • Classification : Unclassified
  • Severity : Unspecified
  • Component : libtizplatform
  • Category : Resource leaks
  • File : /libtizplatform/src/tizsync.c
  • Function : tiz_cond_init
262
    5. noescape: Resource p_cond is not freed or pointed-to in pthread_cond_init.
    6. Condition 0 != (error = pthread_cond_init(p_cond, NULL)), taking true branch
263  if (PTHREAD_SUCCESS != (error = pthread_cond_init (p_cond, NULL)))
264    {
265      TIZ_LOG (TIZ_PRIORITY_ERROR, "OMX_ErrorUndefined : %s", strerror (error));
    7. Condition 22 != error, taking true branch
266      assert (EINVAL != error);

CID 1087251 (#1 of 1): Resource leak (RESOURCE_LEAK)
8. leaked_storage: Variable p_cond going out of scope leaks the storage it points to.
267      return OMX_ErrorUndefined;
268    }
269
270  *app_cond = p_cond;
271
272  return OMX_ErrorNone;
273}

@tizonia tizonia added the bug label Mar 6, 2016

@juanrubio juanrubio closed this in 1fb86a4 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.