bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

memory leak #4 & patch


From: Kenneth Lorber
Subject: memory leak #4 & patch
Date: Fri, 13 Jun 2003 08:27:12 -0400 (EDT)

This leak is in the diff code - which I understand from a recent thread
we don't want to change if we can avoid it.  On the other hand this leak
may have been caused by a previous change to this function (the memory
leaked is allocated by cvs_temp_name()).  Apply or not as you think
best.

Share and Enjoy,
keni

*** diff/diff3.c        Thu May 22 12:13:29 2003
--- XX/diff3.c  Thu Jun 12 13:47:36 2003
***************
*** 1360,1365 ****
--- 1360,1366 ----
    if (close (fd) != 0)
      diff3_perror_with_exit ("pipe close");
    unlink (diffout);
+   free (diffout);
  
    return diff_result + total;
  }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]