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 1087248) [/libtizcore/src/tizcore.c:find_component_paths] : Resource leak #224

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

Comments

@tizonia
Copy link
Collaborator

@tizonia tizonia commented Mar 6, 2016

  • CID : 1087248
  • 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 : find_component_paths
725
    2. alloc_fn: Storage is returned from allocation function tiz_rcfile_get_value_list. [show details]
    3. var_assign: Assigning: val_lst = storage returned from tiz_rcfile_get_value_list("il-core", "component-paths", ap_npaths).
726  val_lst = tiz_rcfile_get_value_list("il-core", "component-paths", ap_npaths);
727
    4. Condition !val_lst, taking false branch
    5. Condition 0 == *ap_npaths, taking true branch
728  if (!val_lst || 0 == * ap_npaths)
729    {

CID 1087248 (#1 of 1): Resource leak (RESOURCE_LEAK)
6. overwrite_var: Overwriting val_lst in val_lst = NULL leaks the storage that val_lst points to.
730      val_lst = NULL;
731      * ap_npaths = 0;
732    }
733
@tizonia tizonia added the bug label Mar 6, 2016
@juanrubio juanrubio closed this in f135b68 Mar 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
0 participants