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 1087250) [/libtizplatform/src/tizsync.c:tiz_mutex_init] : Resource leak #226

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 : 1087250
  • 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_mutex_init
168
    5. noescape: Resource p_mutex is not freed or pointed-to in pthread_mutex_init.
    6. Condition 0 != (error = pthread_mutex_init(p_mutex, NULL)), taking true branch
169  if (PTHREAD_SUCCESS != (error = pthread_mutex_init (p_mutex, NULL)))
170    {
171      TIZ_LOG (TIZ_PRIORITY_ERROR, "OMX_ErrorUndefined : %s", strerror (error));

CID 1087250 (#1 of 1): Resource leak (RESOURCE_LEAK)
7. leaked_storage: Variable p_mutex going out of scope leaks the storage it points to.
172      return OMX_ErrorUndefined;
173    }
174
175  *app_mutex = p_mutex;
176
177  return OMX_ErrorNone;
178}

@tizonia tizonia added the bug label Mar 6, 2016

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