client: Fix talloc_stackframe() free order assertion in developer mode
authorAndrew Bartlett <abartlet@samba.org>
Tue, 25 Sep 2012 00:41:05 +0000 (10:41 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 25 Sep 2012 04:43:01 +0000 (14:43 +1000)
Reported-by: Ricky Nance <ricky.nance@weaubleau.k12.mo.us>
source3/client/client.c

index 1ee98565aac79ba72f0c560f847cda43ed6484c1..ab0e77f50a5cdd9a53aa80892d5803791f5f461c 100644 (file)
@@ -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: