r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()
[jra/samba/.git] / source / smbd / reply.c
index 89b98be1e77024738ee8acdce2a16503c8fecaf8..1ca9d39a4c7a01ce86cc3f9d765579bbc9d27d67 100644 (file)
@@ -4263,11 +4263,11 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, files_struct *fsp, char *
                DEBUG(3,("rename_internals_fsp: succeeded doing rename on %s -> %s\n",
                        fsp->fsp_name,newname));
                rename_open_files(conn, lck, fsp->dev, fsp->inode, newname);
-               talloc_free(lck);
+               TALLOC_FREE(lck);
                return NT_STATUS_OK;    
        }
 
-       talloc_free(lck);
+       TALLOC_FREE(lck);
 
        if (errno == ENOTDIR || errno == EISDIR) {
                error = NT_STATUS_OBJECT_NAME_COLLISION;
@@ -4492,11 +4492,11 @@ directory = %s, newname = %s, last_component_dest = %s, is_8_3 = %d\n",
                        DEBUG(3,("rename_internals: succeeded doing rename on %s -> %s\n",
                                directory,newname));
                        rename_open_files(conn, lck, sbuf1.st_dev, sbuf1.st_ino, newname);
-                       talloc_free(lck);
+                       TALLOC_FREE(lck);
                        return NT_STATUS_OK;    
                }
 
-               talloc_free(lck);
+               TALLOC_FREE(lck);
                if (errno == ENOTDIR || errno == EISDIR)
                        error = NT_STATUS_OBJECT_NAME_COLLISION;
                else
@@ -4599,7 +4599,7 @@ directory = %s, newname = %s, last_component_dest = %s, is_8_3 = %d\n",
                                        count++;
                                        error = NT_STATUS_OK;
                                }
-                               talloc_free(lck);
+                               TALLOC_FREE(lck);
                                DEBUG(3,("rename_internals: doing rename on %s -> %s\n",fname,destname));
                        }
                        CloseDir(dir_hnd);