Commit 3946a2b0 authored by Michael Meeks's avatar Michael Meeks

NULL file pointer on create if we fail,

parent 2c7b7671
1999-12-18 Michael Meeks <mmeeks@gnu.org>
* ms-ole.c (ms_ole_create_vfs): NULL pointer after free in error state.
1999-12-16 Frank Chiulli <fc-linux@home.com>
* ms-ole.c (pps_get_text): Remove code that skips the first character if
......
......@@ -1606,6 +1606,7 @@ ms_ole_create_vfs (MsOle **f, const char *name, gboolean try_mmap,
== -1) {
printf ("Can't create file '%s'\n", name);
g_free (*f);
*f = NULL;
return MS_OLE_ERR_PERM;
}
......@@ -1615,6 +1616,7 @@ ms_ole_create_vfs (MsOle **f, const char *name, gboolean try_mmap,
printf ("Serious error extending file to %d bytes\n",
BB_BLOCK_SIZE*init_blocks);
g_free (*f);
*f = NULL;
return MS_OLE_ERR_SPACE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment