From ff40fde6c974d4e3ca7c43f1503de3d4bcdc7bf7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 17 Sep 2003 18:55:45 +0000 Subject: [PATCH] Forgot to duplicate the file name on Windows. --- src/mm_io.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mm_io.cpp b/src/mm_io.cpp index a1b01a09c..8c6d3fc7c 100644 --- a/src/mm_io.cpp +++ b/src/mm_io.cpp @@ -148,10 +148,13 @@ mm_io_c::mm_io_c(const char *path, const open_mode mode) { _eof = false; if ((HANDLE)file == (HANDLE)0xFFFFFFFF) throw exception(); + + file_name = safestrdup(path); } mm_io_c::mm_io_c() { file = NULL; + safefree(file_name); } mm_io_c::~mm_io_c() {