Fossil SCM

Fix a very minor memory leak in the merge logic.

drh 2024-12-06 04:07 trunk
Commit 6ff817d3c7bd46e6cbf2a07e25f7f0b7f712559e11ff5175c627d1830cf67f68
1 file changed +1 -1
+1 -1
--- src/merge.c
+++ src/merge.c
@@ -1207,11 +1207,11 @@
12071207
** of M and V is an empty file. In this case, merge conflict marks will be
12081208
** added to the file and user will be forced to take a decision.
12091209
*/
12101210
db_prepare(&q,
12111211
/* 0 1 2 3 4 5 6 7 8 */
1212
- "SELECT ridm, idv, ridp, ridv, %s, fn, isexe, islinkv, islinkm,"
1212
+ "SELECT ridm, idv, ridp, ridv, %z, fn, isexe, islinkv, islinkm,"
12131213
/* 9 10 11 */
12141214
" fnp, fnm, chnged"
12151215
" FROM fv"
12161216
" WHERE idv>0 AND idm>0"
12171217
" AND ridm!=ridp AND (ridv!=ridp OR chnged)",
12181218
--- src/merge.c
+++ src/merge.c
@@ -1207,11 +1207,11 @@
1207 ** of M and V is an empty file. In this case, merge conflict marks will be
1208 ** added to the file and user will be forced to take a decision.
1209 */
1210 db_prepare(&q,
1211 /* 0 1 2 3 4 5 6 7 8 */
1212 "SELECT ridm, idv, ridp, ridv, %s, fn, isexe, islinkv, islinkm,"
1213 /* 9 10 11 */
1214 " fnp, fnm, chnged"
1215 " FROM fv"
1216 " WHERE idv>0 AND idm>0"
1217 " AND ridm!=ridp AND (ridv!=ridp OR chnged)",
1218
--- src/merge.c
+++ src/merge.c
@@ -1207,11 +1207,11 @@
1207 ** of M and V is an empty file. In this case, merge conflict marks will be
1208 ** added to the file and user will be forced to take a decision.
1209 */
1210 db_prepare(&q,
1211 /* 0 1 2 3 4 5 6 7 8 */
1212 "SELECT ridm, idv, ridp, ridv, %z, fn, isexe, islinkv, islinkm,"
1213 /* 9 10 11 */
1214 " fnp, fnm, chnged"
1215 " FROM fv"
1216 " WHERE idv>0 AND idm>0"
1217 " AND ridm!=ridp AND (ridv!=ridp OR chnged)",
1218

Keyboard Shortcuts

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