r3631: a couple of tweaks to the talloc hierarchy for async requests in
[kai/samba-autobuild/.git] / source4 / ntvfs / posix / pvfs_wait.c
index 968f65942164c2fa03a1a6a1b2917a09f564257d..479d3395921a47ae34dfe94d9234518e1793c405 100644 (file)
@@ -127,7 +127,7 @@ static int pvfs_wait_destructor(void *ptr)
        struct timed_event te;
        struct pvfs_wait *pwait;
 
-       pwait = talloc_p(req, struct pvfs_wait);
+       pwait = talloc_p(pvfs, struct pvfs_wait);
        if (pwait == NULL) {
                return NULL;
        }