diff options
author | Pavel Reichl <preichl@redhat.com> | 2014-06-19 12:09:06 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-06-20 10:37:37 +0200 |
commit | 09579ae252c181c7884defc0612c36108f6cf509 (patch) | |
tree | c55475e1546aa573dadb807dfe2aff4dc07d4212 /src/db/sysdb.h | |
parent | af63cdbfe0c917e0dc921232f67295fdc48d1e32 (diff) | |
download | sssd-09579ae252c181c7884defc0612c36108f6cf509.tar.gz sssd-09579ae252c181c7884defc0612c36108f6cf509.tar.xz sssd-09579ae252c181c7884defc0612c36108f6cf509.zip |
SYSDB: sysdb_search_entry fix memory leak
Allocate res on tmp_ctx instead of on mem_ctx.
Also use '_' prefix convention for output parameters.
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index dd14190bf..1057090e6 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -505,8 +505,8 @@ int sysdb_search_entry(TALLOC_CTX *mem_ctx, int scope, const char *filter, const char **attrs, - size_t *msgs_count, - struct ldb_message ***msgs); + size_t *_msgs_count, + struct ldb_message ***_msgs); /* Search User (by uid, sid or name) */ int sysdb_search_user_by_name(TALLOC_CTX *mem_ctx, |