summaryrefslogtreecommitdiffstats
path: root/src/gui_w48.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-06-30 21:56:01 +0000
committerBram Moolenaar <Bram@vim.org>2005-06-30 21:56:01 +0000
commite6b165e0f4f70d22a4fbcc5c9a1818417bdb1b04 (patch)
tree584373ca902692085457b72a232ad58956987f6e /src/gui_w48.c
parent9c96f592af7a88e63ebf63f82d1b36b3954af401 (diff)
updated for version 7.0098
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r--src/gui_w48.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c
index be2354681e..97a0ca00ef 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -3500,7 +3500,10 @@ get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree)
{
argv = (char **)malloc((argc + 1) * sizeof(char *));
if (argv == NULL )
+ {
+ vim_free(newcmdline);
return 0; /* malloc error */
+ }
pnew = newcmdline;
}
}