Fossil SCM

Avoid freeing memory that might not have been malloced in the "ticket" command with the --quote option. Ticket [6dba56543b89dc4].

drh 2012-08-08 12:36 trunk
Commit 0bc2a94104e68d4519f10f7fbf49e75f0e343587
1 file changed -3
-3
--- src/tkt.c
+++ src/tkt.c
@@ -1166,13 +1166,10 @@
11661166
blob_appendf(&tktchng, "J%s%s %s\n", zPfx, azField[i], zValue);
11671167
}else{
11681168
blob_appendf(&tktchng, "J%s%s %#F\n", zPfx,
11691169
azField[i], strlen(zValue), zValue);
11701170
}
1171
- if( tktEncoding == tktFossilize ){
1172
- free(azValue[i]);
1173
- }
11741171
}
11751172
blob_appendf(&tktchng, "K %s\n", zTktUuid);
11761173
blob_appendf(&tktchng, "U %F\n", zUser);
11771174
md5sum_blob(&tktchng, &cksum);
11781175
blob_appendf(&tktchng, "Z %b\n", &cksum);
11791176
--- src/tkt.c
+++ src/tkt.c
@@ -1166,13 +1166,10 @@
1166 blob_appendf(&tktchng, "J%s%s %s\n", zPfx, azField[i], zValue);
1167 }else{
1168 blob_appendf(&tktchng, "J%s%s %#F\n", zPfx,
1169 azField[i], strlen(zValue), zValue);
1170 }
1171 if( tktEncoding == tktFossilize ){
1172 free(azValue[i]);
1173 }
1174 }
1175 blob_appendf(&tktchng, "K %s\n", zTktUuid);
1176 blob_appendf(&tktchng, "U %F\n", zUser);
1177 md5sum_blob(&tktchng, &cksum);
1178 blob_appendf(&tktchng, "Z %b\n", &cksum);
1179
--- src/tkt.c
+++ src/tkt.c
@@ -1166,13 +1166,10 @@
1166 blob_appendf(&tktchng, "J%s%s %s\n", zPfx, azField[i], zValue);
1167 }else{
1168 blob_appendf(&tktchng, "J%s%s %#F\n", zPfx,
1169 azField[i], strlen(zValue), zValue);
1170 }
 
 
 
1171 }
1172 blob_appendf(&tktchng, "K %s\n", zTktUuid);
1173 blob_appendf(&tktchng, "U %F\n", zUser);
1174 md5sum_blob(&tktchng, &cksum);
1175 blob_appendf(&tktchng, "Z %b\n", &cksum);
1176

Keyboard Shortcuts

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