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

[email protected] 15 Mar 2005 22:29:33 -0000
Newsgroups gmane.comp.version-control.cvs.cvs
Message-ID <[email protected]>
Tag: cvs1-11-x-branch
User: mdb     
Date: 05/03/15 14:29:33

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

Log:
 * history.c (select_hrec): Avoid possible memory leak.

File Changes:

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

File [changed]: ChangeLog
Url: https://ccvs.cvshome.org/source/browse/ccvs/src/ChangeLog?r1=1.2336.2.352&r2=1.2336.2.353
Delta lines:  +4 -0
-------------------
--- ChangeLog	15 Mar 2005 17:44:40 -0000	1.2336.2.352
+++ ChangeLog	15 Mar 2005 22:29:30 -0000	1.2336.2.353
@@ -1,3 +1,7 @@
+2005-03-15  Mark D. Baushke  <[email protected]>
+
+	* history.c (select_hrec): Avoid possible memory leak.
+
 2005-03-15  Derek Price  <[email protected]>
 
 	* patch.c (patch_proc): Avoid memory leak.

File [changed]: history.c
Url: https://ccvs.cvshome.org/source/browse/ccvs/src/history.c?r1=1.58.4.9&r2=1.58.4.10
Delta lines:  +2 -0
-------------------
--- history.c	9 Mar 2005 19:47:15 -0000	1.58.4.9
+++ history.c	15 Mar 2005 22:29:30 -0000	1.58.4.10
@@ -1395,6 +1395,8 @@
 		    if (within (cp, cp2))
 		    {
 			hr->mod = fl->l_module;
+			if (cmpfile != NULL)
+			    free (cmpfile);
 			break;
 		    }
 		    if (cmpfile != NULL)