Fossil SCM

Do not free the Tcl result (or interp) prior to setting the TH1 result.

mistachkin 2011-08-28 03:00 tcl-integration
Commit 0299d484fc77aafad74837a5f15a4ff43b848bef
+2 -2
--- src/th_tcl.c
+++ src/th_tcl.c
@@ -108,12 +108,12 @@
108108
Tcl_DecrRefCount(objv[i-1]);
109109
}
110110
ckfree((char *)objv);
111111
}
112112
zResult = Tcl_GetStringFromObj(resultObjPtr, &nResult);
113
- Tcl_DecrRefCount(resultObjPtr);
114113
Th_SetResult(interp, zResult, nResult);
114
+ Tcl_DecrRefCount(resultObjPtr);
115115
return rc;
116116
}
117117
118118
/*
119119
** Syntax:
@@ -161,12 +161,12 @@
161161
Tcl_DecrRefCount(objv[i-1]);
162162
}
163163
ckfree((char *)objv);
164164
objPtr = Tcl_GetObjResult(tclInterp);
165165
zResult = Tcl_GetStringFromObj(objPtr, &nResult);
166
- Tcl_Release((ClientData)tclInterp);
167166
Th_SetResult(interp, zResult, nResult);
167
+ Tcl_Release((ClientData)tclInterp);
168168
return rc;
169169
}
170170
171171
/*
172172
** Syntax:
173173
--- src/th_tcl.c
+++ src/th_tcl.c
@@ -108,12 +108,12 @@
108 Tcl_DecrRefCount(objv[i-1]);
109 }
110 ckfree((char *)objv);
111 }
112 zResult = Tcl_GetStringFromObj(resultObjPtr, &nResult);
113 Tcl_DecrRefCount(resultObjPtr);
114 Th_SetResult(interp, zResult, nResult);
 
115 return rc;
116 }
117
118 /*
119 ** Syntax:
@@ -161,12 +161,12 @@
161 Tcl_DecrRefCount(objv[i-1]);
162 }
163 ckfree((char *)objv);
164 objPtr = Tcl_GetObjResult(tclInterp);
165 zResult = Tcl_GetStringFromObj(objPtr, &nResult);
166 Tcl_Release((ClientData)tclInterp);
167 Th_SetResult(interp, zResult, nResult);
 
168 return rc;
169 }
170
171 /*
172 ** Syntax:
173
--- src/th_tcl.c
+++ src/th_tcl.c
@@ -108,12 +108,12 @@
108 Tcl_DecrRefCount(objv[i-1]);
109 }
110 ckfree((char *)objv);
111 }
112 zResult = Tcl_GetStringFromObj(resultObjPtr, &nResult);
 
113 Th_SetResult(interp, zResult, nResult);
114 Tcl_DecrRefCount(resultObjPtr);
115 return rc;
116 }
117
118 /*
119 ** Syntax:
@@ -161,12 +161,12 @@
161 Tcl_DecrRefCount(objv[i-1]);
162 }
163 ckfree((char *)objv);
164 objPtr = Tcl_GetObjResult(tclInterp);
165 zResult = Tcl_GetStringFromObj(objPtr, &nResult);
 
166 Th_SetResult(interp, zResult, nResult);
167 Tcl_Release((ClientData)tclInterp);
168 return rc;
169 }
170
171 /*
172 ** Syntax:
173
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -61,11 +61,11 @@
6161
TCC += -L$(TCLDIR)/lib -I$(TCLDIR)/include
6262
endif
6363
6464
# With HTTPS support
6565
ifdef FOSSIL_ENABLE_SSL
66
-TCC += -static -DFOSSIL_ENABLE_SSL=1
66
+TCC += -DFOSSIL_ENABLE_SSL=1
6767
endif
6868
6969
# With Tcl support
7070
ifdef FOSSIL_ENABLE_TCL
7171
TCC += -DFOSSIL_ENABLE_TCL=1
@@ -75,11 +75,12 @@
7575
# to link against the Z-Lib compression library. There are no
7676
# other dependencies. We sometimes add the -static option here
7777
# so that we can build a static executable that will run in a
7878
# chroot jail.
7979
#
80
-#LIB = -lz -lws2_32
80
+LIB = -static
81
+
8182
# OpenSSL:
8283
ifdef FOSSIL_ENABLE_SSL
8384
LIB += -lssl -lcrypto -lgdi32
8485
endif
8586
LIB += -lmingwex -lz -lws2_32
8687
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -61,11 +61,11 @@
61 TCC += -L$(TCLDIR)/lib -I$(TCLDIR)/include
62 endif
63
64 # With HTTPS support
65 ifdef FOSSIL_ENABLE_SSL
66 TCC += -static -DFOSSIL_ENABLE_SSL=1
67 endif
68
69 # With Tcl support
70 ifdef FOSSIL_ENABLE_TCL
71 TCC += -DFOSSIL_ENABLE_TCL=1
@@ -75,11 +75,12 @@
75 # to link against the Z-Lib compression library. There are no
76 # other dependencies. We sometimes add the -static option here
77 # so that we can build a static executable that will run in a
78 # chroot jail.
79 #
80 #LIB = -lz -lws2_32
 
81 # OpenSSL:
82 ifdef FOSSIL_ENABLE_SSL
83 LIB += -lssl -lcrypto -lgdi32
84 endif
85 LIB += -lmingwex -lz -lws2_32
86
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -61,11 +61,11 @@
61 TCC += -L$(TCLDIR)/lib -I$(TCLDIR)/include
62 endif
63
64 # With HTTPS support
65 ifdef FOSSIL_ENABLE_SSL
66 TCC += -DFOSSIL_ENABLE_SSL=1
67 endif
68
69 # With Tcl support
70 ifdef FOSSIL_ENABLE_TCL
71 TCC += -DFOSSIL_ENABLE_TCL=1
@@ -75,11 +75,12 @@
75 # to link against the Z-Lib compression library. There are no
76 # other dependencies. We sometimes add the -static option here
77 # so that we can build a static executable that will run in a
78 # chroot jail.
79 #
80 LIB = -static
81
82 # OpenSSL:
83 ifdef FOSSIL_ENABLE_SSL
84 LIB += -lssl -lcrypto -lgdi32
85 endif
86 LIB += -lmingwex -lz -lws2_32
87

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button