diff options
author | Tavis Ormandy <taviso@gentoo.org> | 2005-08-21 17:41:07 +0000 |
---|---|---|
committer | Tavis Ormandy <taviso@gentoo.org> | 2005-08-21 17:41:07 +0000 |
commit | e5d9774bc609d6d8796e8b96cdaf758fe8d085b9 (patch) | |
tree | 38eaa7392557960448c3aa367a10a18527809059 /app-editors/teco/files/teco-double-free.diff | |
parent | Housekeeping (diff) | |
download | historical-e5d9774bc609d6d8796e8b96cdaf758fe8d085b9.tar.gz historical-e5d9774bc609d6d8796e8b96cdaf758fe8d085b9.tar.bz2 historical-e5d9774bc609d6d8796e8b96cdaf758fe8d085b9.zip |
fixing bug 103257
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'app-editors/teco/files/teco-double-free.diff')
-rw-r--r-- | app-editors/teco/files/teco-double-free.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-editors/teco/files/teco-double-free.diff b/app-editors/teco/files/teco-double-free.diff new file mode 100644 index 000000000000..5a62b23d90be --- /dev/null +++ b/app-editors/teco/files/teco-double-free.diff @@ -0,0 +1,20 @@ +--- te_exec2.c 1993-11-12 21:12:47.000000000 +0000 ++++ te_exec2.c.new 2005-08-21 18:31:26.495907720 +0100 +@@ -197,7 +197,7 @@ + { + if (eisw) /* if ending a file execute, restore the previous "old command string" */ + { +- fclose(eisw); /* return the file descriptor */ ++ fclose(eisw), eisw = NULL; /* return the file descriptor */ + dly_free_blist(cbuf.f); /* return the command string used by the file (after execution done) */ + cbuf.f = oldcstring.f; + cbuf.z = oldcstring.z; +@@ -214,7 +214,7 @@ + oldcstring.z = cbuf.z; + cbuf.f = NULL; /* and make it inaccessible to "rdcmd" */ + } +- if (eisw) fclose(eisw); /* if a command file had been open, close it */ ++ if (eisw) fclose(eisw), eisw = NULL; /* if a command file had been open, close it */ + esp->val1 = (eisw = t_eisw) ? -1 : 0; + esp->flag1 = colonflag; + colonflag = 0; |