#515 Potential resource leak in sss_tools' copy_tree_ctx()
Closed: Fixed Opened by sgallagh.

From Coverity:

Assigning: "src_dir" = storage returned from "opendir(src_root)".
Calling allocation function "opendir".
  598    src_dir = opendir(src_root);
...
  642fail:
  643    talloc_free(tmp_ctx);
Variable "src_dir" going out of scope leaks the storage it points to.
  644    return ret;
  645}

The same problem also exists in remote_tree_with_ctx()

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.2.1

Fields changed

keywords: => coverity

Fields changed

status: new => assigned

Fixed by bae7e43b7fe602beba8952ad9d25e059773e8860

fixedin: => 1.2.1
resolution: => fixed
status: assigned => closed

Fix is incomplete. Needs to be addressed in remove_tree_with_ctx() as well.

resolution: fixed =>
status: closed => reopened

Fields changed

owner: jhrozek => sgallagh
status: reopened => new

Fields changed

status: new => assigned

Fixed by ee5d8931739ad453f9c669b252f5e3bf1e1d4c0a

resolution: => fixed
status: assigned => closed

Fields changed

rhbz: => 0

Metadata Update from @sgallagh:
- Issue assigned to sgallagh
- Issue set to the milestone: SSSD 1.2.1

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1557

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata