client: Fix talloc_stackframe() free order assertion in developer mode
[kai/samba.git] / 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: