From 09579ae252c181c7884defc0612c36108f6cf509 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Thu, 19 Jun 2014 12:09:06 +0100 Subject: 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 --- src/db/sysdb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db/sysdb.h') 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, -- cgit