Commit 7d032a4f by Rainer Orth Committed by Bruce Korb

fix memory leak in run_compiles

From-SVN: r26822
parent f2fee5be
...@@ -16,6 +16,7 @@ Fri May 7 14:19:31 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> ...@@ -16,6 +16,7 @@ Fri May 7 14:19:31 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
(sig_handler): Add debug code. (sig_handler): Add debug code.
* fixinc/server.c (run_shell): Don't \-escape cd, it breaks the * fixinc/server.c (run_shell): Don't \-escape cd, it breaks the
Ultrix V4.3 /bin/sh. Ultrix V4.3 /bin/sh.
* fixinc/fixincl.c (run_compiles): fix memory leak
Thu May 6 20:34:00 1999 Mark Mitchell <mark@codesourcery.com> Thu May 6 20:34:00 1999 Mark Mitchell <mark@codesourcery.com>
......
...@@ -634,13 +634,18 @@ run_compiles () ...@@ -634,13 +634,18 @@ run_compiles ()
/* Run the script. /* Run the script.
The result will start either with 's' or 'r'. */ The result will start either with 's' or 'r'. */
{
int skip;
pz = run_shell (file_name_buf); pz = run_shell (file_name_buf);
if (*pz == 's') skip = (*pz == 's');
free ( (void*)pz );
if (skip)
{ {
p_fixd->fd_flags |= FD_SKIP_TEST; p_fixd->fd_flags |= FD_SKIP_TEST;
continue; continue;
} }
} }
}
/* FOR every test for the fixup, ... */ /* FOR every test for the fixup, ... */
......
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