diff options
author | Sumit Bose <sbose@redhat.com> | 2009-07-09 12:33:51 +0200 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-07-09 09:19:36 -0400 |
commit | 40c98139e5754549d0d4deb75a604900bdbfd0e1 (patch) | |
tree | d96d26c7ef32a87118ebc012f8742c0dbc9aa99a /server | |
parent | f7cfc12d431f2e435d7655d080db015ab9a7d554 (diff) | |
download | sssd-40c98139e5754549d0d4deb75a604900bdbfd0e1.tar.gz sssd-40c98139e5754549d0d4deb75a604900bdbfd0e1.tar.xz sssd-40c98139e5754549d0d4deb75a604900bdbfd0e1.zip |
fixed typos and a potential memory leak
Diffstat (limited to 'server')
-rw-r--r-- | server/db/sysdb_ops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/db/sysdb_ops.c b/server/db/sysdb_ops.c index efcc5d1b3..ad4a63e5e 100644 --- a/server/db/sysdb_ops.c +++ b/server/db/sysdb_ops.c @@ -3098,7 +3098,7 @@ struct tevent_req *sysdb_cache_password_send(TALLOC_CTX *mem_ctx, char *salt; int ret; - req = tevent_req_create(mem_ctx, &state, struct sysdb_op_state); + req = tevent_req_create(mem_ctx, &state, struct sysdb_cache_pw_state); if (!req) return NULL; state->ev = ev; @@ -3170,7 +3170,8 @@ static void sysdb_cache_password_trans(struct tevent_req *subreq) struct sysdb_cache_pw_state); int ret; - ret = sysdb_transaction_recv(req, state, &state->handle); + ret = sysdb_transaction_recv(subreq, state, &state->handle); + talloc_zfree(subreq); if (ret) { tevent_req_error(req, ret); return; |