diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2012-01-18 11:33:25 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-06 08:25:22 -0500 |
commit | c32484c393dac7f8dda6d2512e9aa51864abd8fe (patch) | |
tree | 0d32365182d39128bd983884714225734660e79a | |
parent | 71ad247500b417836a1a2edec257a4433a7c415f (diff) | |
download | sssd-c32484c393dac7f8dda6d2512e9aa51864abd8fe.tar.gz sssd-c32484c393dac7f8dda6d2512e9aa51864abd8fe.tar.bz2 sssd-c32484c393dac7f8dda6d2512e9aa51864abd8fe.zip |
Fixed minor memory-hierarchy-related issue in IPA HBAC
-rw-r--r-- | src/providers/ipa/ipa_hbac_hosts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_hbac_hosts.c b/src/providers/ipa/ipa_hbac_hosts.c index d672760e..329fdc88 100644 --- a/src/providers/ipa/ipa_hbac_hosts.c +++ b/src/providers/ipa/ipa_hbac_hosts.c @@ -361,7 +361,8 @@ ipa_hbac_hostgroup_info_done(struct tevent_req *subreq) i = 0; while(state->hostgroup_count < hostgroups_total) { - state->hostgroups[state->hostgroup_count] = hostgroups[i]; + state->hostgroups[state->hostgroup_count] = + talloc_steal(state->hostgroups, hostgroups[i]); state->hostgroup_count++; i++; } |