s3: Don't use talloc_autofree_context in map_file
authorVolker Lendecke <vl@samba.org>
Sat, 9 Oct 2010 08:12:06 +0000 (10:12 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 20 Oct 2010 16:09:19 +0000 (18:09 +0200)
lib/util/util_file.c

index aa0b2d5855782d025ccf9780e70711111c2602c2..7c00dd8b579828e8af206e6273757e2bbd2ae083 100644 (file)
@@ -235,7 +235,7 @@ _PUBLIC_ void *map_file(const char *fname, size_t size)
        }
 #endif
        if (!p) {
-               p = file_load(fname, &s2, 0, talloc_autofree_context());
+               p = file_load(fname, &s2, 0, NULL);
                if (!p) return NULL;
                if (s2 != size) {
                        DEBUG(1,("incorrect size for %s - got %d expected %d\n",