r13694: Committing patch from Aleksey Fedoseev <aleksey at fedoseev dot net> to NULL
authorVolker Lendecke <vlendec@samba.org>
Sun, 26 Feb 2006 14:20:29 +0000 (14:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:10:24 +0000 (11:10 -0500)
out a pointer after talloc_destroy().

Volker
(This used to be commit 788e52eb5d17a8f5b41b6ad5244ccf448fc81a36)

source3/smbd/open.c

index 258e0e6021563dd3956daa3b522087610535197c..8913db8380cda3a1ad8239b417ea130389639839 100644 (file)
@@ -1110,7 +1110,7 @@ files_struct *open_file_ntcreate(connection_struct *conn,
                        DEBUG(0, ("could not get share mode lock\n"));
                } else {
                        del_deferred_open_entry(lck, mid);
-                       talloc_destroy(lck);
+                       TALLOC_FREE(lck);
                }
 
                /* Ensure we don't reprocess this message. */