r4549: got rid of a lot more uses of plain talloc(), instead using
[jelmer/samba4-debian.git] / source / ntvfs / posix / pvfs_resolve.c
index 4ad34767950577aff649cbc3d625d1e5310e895f..fc1576b955440a83d4495e952e14bb8a8f42d196 100644 (file)
@@ -412,7 +412,7 @@ static NTSTATUS pvfs_reduce_name(TALLOC_CTX *mem_ctx, const char **fname, uint_t
        }
 
        /* rebuild the name */
-       ret = talloc(mem_ctx, len+1);
+       ret = talloc_size(mem_ctx, len+1);
        if (ret == NULL) {
                talloc_free(s);
                return NT_STATUS_NO_MEMORY;