r14990: talloc_reference() can fail
authorStefan Metzmacher <metze@samba.org>
Sat, 8 Apr 2006 07:54:15 +0000 (07:54 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:00:51 +0000 (14:00 -0500)
metze

source/ntvfs/posix/pvfs_notify.c

index 592beb5a3eb8092d7951a42adc76d26c4cc35a09..ea4c0b2bc65f3b7643e156aeb9b02d573fe4b375 100644 (file)
@@ -236,6 +236,7 @@ NTSTATUS pvfs_notify(struct ntvfs_module_context *ntvfs,
        NT_STATUS_HAVE_NO_MEMORY(pending);
 
        pending->req = talloc_reference(pending, req);
+       NT_STATUS_HAVE_NO_MEMORY(pending->req); 
        pending->info = info;
 
        DLIST_ADD_END(f->notify_buffer->pending, pending, struct notify_pending *);