diff options
-rw-r--r-- | source4/ntvfs/posix/pvfs_sys.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_sys.c b/source4/ntvfs/posix/pvfs_sys.c index 5775d0bb77..eb710f6651 100644 --- a/source4/ntvfs/posix/pvfs_sys.c +++ b/source4/ntvfs/posix/pvfs_sys.c @@ -196,9 +196,11 @@ static struct pvfs_sys_ctx *pvfs_sys_pushdir(struct pvfs_state *pvfs, talloc_free(ctx); return NULL; } + ctx->old_wd = talloc_strdup(ctx, cwd); + free(cwd); + if (ctx->old_wd == NULL) { - free(cwd); talloc_free(ctx); return NULL; } |