Author: tridge
Date: 2007-02-08 03:01:47 +0000 (Thu, 08 Feb 2007)
New Revision: 21234

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21234

Log:

fixed a subtle bug with talloc reference counting and async ntvfs
requests.

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c   2007-02-08 02:59:58 UTC 
(rev 21233)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_wait.c   2007-02-08 03:01:47 UTC 
(rev 21234)
@@ -76,9 +76,9 @@
           structure is not destroyed when the async request reply is
           sent, which would cause problems with the other ntvfs
           modules above us */
-       talloc_increase_ref_count(req);
+       talloc_reference(msg, req);
        ntvfs_async_setup(pwait->req, pwait);
-       talloc_free(req);
+       talloc_unlink(msg, req);
 }
 
 

Reply via email to