Fixed memory leak that occurred if sorting failed.
[idzebra-moved-to-github.git] / bfile / cfile.c
index a0dfaa2..ab6efb9 100644 (file)
@@ -1,8 +1,5 @@
-/* $Id: cfile.c,v 1.40 2006-11-14 12:11:48 adam Exp $
-   Copyright (C) 1995-2006
-   Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+   Copyright (C) 1995-2008 Index Data
 
 Zebra is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -89,8 +86,7 @@ CFile cf_open(MFile mf, MFile_area area, const char *fname,
     /* avoid valgrind warnings, but set to something nasty */
     memset(cf, 'Z', sizeof(*cf));
 
-    yaz_log(YLOG_DEBUG, "cf: open %s %s", cf->rmf->name,
-            wflag ? "rdwr" : "rd");
+    yaz_log(YLOG_DEBUG, "cf: open %s %s", fname, wflag ? "rdwr" : "rd");
    
     cf->block_mf = 0;
     cf->hash_mf = 0;