summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-04-01 07:33:15 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2012-04-01 07:33:15 +0000
commitfe9173c8e4478f11c5474ec6e67ab3eaec2567ad (patch)
tree503e9bb885963acb534aa536035c1f6e580c5533 /Build
parent1f8c7565c56a27f63c8716f6965d4b751576e6aa (diff)
do not free getenved string
git-svn-id: svn://tug.org/texlive/trunk@25817 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipsk/ChangeLog4
-rw-r--r--Build/source/texk/dvipsk/dvips.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog
index ec61ae62ebc..4b27b615311 100644
--- a/Build/source/texk/dvipsk/ChangeLog
+++ b/Build/source/texk/dvipsk/ChangeLog
@@ -1,3 +1,7 @@
+2012-04-01 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * dvips.c: do not free getenved string.
+
2012-03-30 Norbert Preining <preining@logic.at>
* resident.c: add new directive "c<filename> to config files, allowing
diff --git a/Build/source/texk/dvipsk/dvips.c b/Build/source/texk/dvipsk/dvips.c
index 24e80684e5f..918d3ed3582 100644
--- a/Build/source/texk/dvipsk/dvips.c
+++ b/Build/source/texk/dvipsk/dvips.c
@@ -670,15 +670,13 @@ Primary author of Dvips: T. Rokicki.");
#endif
dvips_debug_flag = 0;
{ /* for compilers incompatible with c99 */
- char *s = (char *)getenv ("DVIPSDEBUG");
+ char *s = getenv ("DVIPSDEBUG");
if (s) {
dvips_debug_flag = 1;
- free (s);
} else {
- s = (char *) getenv ("KPATHSEA_DEBUG");
+ s = getenv ("KPATHSEA_DEBUG");
if (s) {
dvips_debug_flag = 1;
- free (s);
}
}
}