From: Andrew Bartlett Date: Tue, 25 Sep 2012 00:41:05 +0000 (+1000) Subject: client: Fix talloc_stackframe() free order assertion in developer mode X-Git-Tag: talloc-2.0.8~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4f143f9d7a1502712d8a6b1c872a13632a5cff3;p=thirdparty%2Fsamba.git client: Fix talloc_stackframe() free order assertion in developer mode Reported-by: Ricky Nance --- diff --git a/source3/client/client.c b/source3/client/client.c index 1ee98565aac..ab0e77f50a5 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -4970,6 +4970,7 @@ static char **remote_completion(const char *text, int len) info.matches[0] = SMB_STRNDUP(info.matches[1], info.samelen); info.matches[info.count] = NULL; + TALLOC_FREE(ctx); return info.matches; cleanup: