CVS update [cvs1-11-x-branch]: /ccvs/src/

[email protected] 15 Mar 2005 17:44:43 -0000
Newsgroups gmane.comp.version-control.cvs.cvs
Message-ID <[email protected]>
Tag: cvs1-11-x-branch
User: dprice  
Date: 05/03/15 09:44:43

Modified:
 /ccvs/src/
  ChangeLog, patch.c

Log:
 * patch.c (patch_proc): Avoid memory leak.
 (Thanks to report from Alen Zukich <[email protected]>.)

File Changes:

Directory: /ccvs/src/
=====================

File [changed]: ChangeLog
Url: https://ccvs.cvshome.org/source/browse/ccvs/src/ChangeLog?r1=1.2336.2.351&r2=1.2336.2.352
Delta lines:  +5 -0
-------------------
--- ChangeLog	11 Mar 2005 19:01:12 -0000	1.2336.2.351
+++ ChangeLog	15 Mar 2005 17:44:40 -0000	1.2336.2.352
@@ -1,3 +1,8 @@
+2005-03-15  Derek Price  <[email protected]>
+
+	* patch.c (patch_proc): Avoid memory leak.
+	(Thanks to report from Alen Zukich <[email protected]>.)
+
 2005-03-11  Mark D. Baushke  <[email protected]>
 
 	* modules.c (my_module): Protect against free (NULL) code path.

File [changed]: patch.c
Url: https://ccvs.cvshome.org/source/browse/ccvs/src/patch.c?r1=1.80.4.9&r2=1.80.4.10
Delta lines:  +1 -0
-------------------
--- patch.c	31 Jan 2005 22:15:11 -0000	1.80.4.9
+++ patch.c	15 Mar 2005 17:44:40 -0000	1.80.4.10
@@ -343,6 +343,7 @@
     {
 	error (0, errno, "cannot chdir to %s", repository);
 	free (repository);
+	free (where);
 	return 1;
     }