rpms/itcl/FC-5 itcl-3.3-func-leak.patch,NONE,1.1 itcl.spec,1.3,1.4
Michael Thomas (wart)
fedora-extras-commits at redhat.com
Fri Jun 2 20:59:36 UTC 2006
Author: wart
Update of /cvs/extras/rpms/itcl/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16914/FC-5
Modified Files:
itcl.spec
Added Files:
itcl-3.3-func-leak.patch
Log Message:
Added patch from upstream to close a minor memory leak.
itcl-3.3-func-leak.patch:
--- NEW FILE itcl-3.3-func-leak.patch ---
Index: itcl/generic/itcl_methods.c
===================================================================
RCS file: /cvsroot/incrtcl/incrTcl/itcl/generic/itcl_methods.c,v
retrieving revision 1.15
diff -u -r1.15 itcl_methods.c
--- itcl/generic/itcl_methods.c 1 Mar 2006 11:39:55 -0000 1.15
+++ itcl/generic/itcl_methods.c 2 Jun 2006 19:49:00 -0000
@@ -750,14 +750,17 @@
{
ItclMemberCode* mcode = (ItclMemberCode*)cdata;
+ /*
+ * Free the argument list. If empty, free the compiled locals, if any.
+ */
if (mcode->arglist) {
Itcl_DeleteArgList(mcode->arglist);
+ } else if (mcode->procPtr->firstLocalPtr) {
+ Itcl_DeleteArgList(mcode->procPtr->firstLocalPtr);
}
if (mcode->procPtr) {
ckfree((char*) mcode->procPtr->cmdPtr);
- /* don't free compiled locals -- that is handled by arglist above */
-
if (mcode->procPtr->bodyPtr) {
Tcl_DecrRefCount(mcode->procPtr->bodyPtr);
}
Index: itcl.spec
===================================================================
RCS file: /cvs/extras/rpms/itcl/FC-5/itcl.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- itcl.spec 1 Jun 2006 17:59:25 -0000 1.3
+++ itcl.spec 2 Jun 2006 20:59:36 -0000 1.4
@@ -1,6 +1,6 @@
Name: itcl
Version: 3.3
-Release: 0.5.RC1%{?dist}
+Release: 0.6.RC1%{?dist}
Summary: Object oriented extensions to Tcl and Tk
Group: Development/Libraries
@@ -8,6 +8,7 @@
URL: http://incrtcl.sourceforge.net/itcl/
Source0: http://easynews.dl.sourceforge.net/sourceforge/incrtcl/itcl3.3.tar.gz
Patch0: itcl-3.3-autotools.patch
+Patch1: itcl-3.3-func-leak.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: tcl
@@ -26,7 +27,8 @@
%prep
%setup -q -n itcl3.3
-%patch -p1
+%patch0 -p1
+%patch1 -p1
%build
%configure
@@ -56,6 +58,12 @@
%doc
%changelog
+* Fri Jun 2 2006 Wart <wart at kobold.org> - 3.3-0.6.RC1
+- Added upstream's patch to close a minor memory leak
+
+* Thu Jun 1 2006 Wart <wart at kobold.org> - 3.3-0.5.RC1
+- Fix BR: for -devel subpackage
+
* Thu Feb 16 2006 Wart <wart at kobold.org> - 3.3-0.4.RC1
- Rebuild for FC-5
More information about the scm-commits
mailing list