summaryrefslogtreecommitdiff
path: root/source3/nsswitch/pam_winbind.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch/pam_winbind.c')
-rw-r--r--source3/nsswitch/pam_winbind.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 393dc29245..f96dd0ee9b 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -227,12 +227,15 @@ static int _make_remark_format(pam_handle_t * pamh, int type, const char *format
{
va_list args;
char *var;
+ int ret;
va_start(args, format);
vasprintf(&var, format, args);
va_end(args);
- return _make_remark(pamh, type, var);
+ ret = _make_remark(pamh, type, var);
+ SAFE_FREE(var);
+ return ret;
}
static int pam_winbind_request(pam_handle_t * pamh, int ctrl,