Don't forget to delete the stackframe.
authorJeremy Allison <jra@samba.org>
Tue, 4 Dec 2007 02:56:54 +0000 (18:56 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 4 Dec 2007 02:56:54 +0000 (18:56 -0800)
Jeremy.
(This used to be commit 0551ee3402daebe5b96a66162d7702ca5a31da52)

source3/libsmb/clidfs.c

index 8ff358e26f1a9a807e1e84d4b5aaaf0cf17c28c7..32a2c31c838c5d8aa5469eabc189b03538548c72 100644 (file)
@@ -873,6 +873,7 @@ bool cli_resolve_path_pstring( const char *mountpt,
        if (tpath) {
                pstrcpy(targetpath, tpath);
        }
+       TALLOC_FREE(ctx);
        return ret;
 }