summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.h
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2014-06-19 12:09:06 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-06-20 10:37:37 +0200
commit09579ae252c181c7884defc0612c36108f6cf509 (patch)
treec55475e1546aa573dadb807dfe2aff4dc07d4212 /src/db/sysdb.h
parentaf63cdbfe0c917e0dc921232f67295fdc48d1e32 (diff)
downloadsssd-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.h4
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,