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 1087249) [/libtizplatform/src/tizsync.c:tiz_sem_init] : Resource leak #225

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 : 1087249
  • 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_sem_init
63
    5. noescape: Resource p_sem is not freed or pointed-to in sem_init.
    6. Condition 0 != sem_init(p_sem, 0, a_value), taking true branch
 64  if (SEM_SUCCESS != sem_init (p_sem, 0, a_value))
 65    {
 66      TIZ_LOG (TIZ_PRIORITY_ERROR, "OMX_ErrorUndefined : %s", strerror (errno));

CID 1087249 (#1 of 1): Resource leak (RESOURCE_LEAK)
7. leaked_storage: Variable p_sem going out of scope leaks the storage it points to.
 67      return OMX_ErrorUndefined;
 68    }
 69
 70  *app_sem = p_sem;
 71
 72  return OMX_ErrorNone;
 73}

@tizonia tizonia added the bug label Mar 6, 2016

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