Fossil SCM

Cleanup blobs used by the 'all' sub-command.

mistachkin 2015-04-03 04:08 trunk
Commit 52d746ed1eae3f18be48feedcd1b08253b5f3fe5
1 file changed +8
--- src/allrepo.c
+++ src/allrepo.c
@@ -286,10 +286,13 @@
286286
}else{
287287
db_multi_exec("%s", blob_sql_text(&sql));
288288
}
289289
}
290290
db_end_transaction(0);
291
+ blob_reset(&sql);
292
+ blob_reset(&fn);
293
+ blob_reset(&extra);
291294
return;
292295
}else if( strncmp(zCmd, "add", n)==0 ){
293296
int j;
294297
Blob fn = BLOB_INITIALIZER;
295298
Blob sql = BLOB_INITIALIZER;
@@ -315,10 +318,13 @@
315318
}else{
316319
db_multi_exec("%s", blob_sql_text(&sql));
317320
}
318321
}
319322
db_end_transaction(0);
323
+ blob_reset(&sql);
324
+ blob_reset(&fn);
325
+ blob_reset(&extra);
320326
return;
321327
}else if( strncmp(zCmd, "info", n)==0 ){
322328
zCmd = "info";
323329
showLabel = 1;
324330
quiet = 1;
@@ -385,10 +391,12 @@
385391
if( stopOnError && rc ){
386392
break;
387393
}
388394
}
389395
db_finalize(&q);
396
+
397
+ blob_reset(&extra);
390398
391399
/* If any repositories whose names appear in the ~/.fossil file could not
392400
** be found, remove those names from the ~/.fossil file.
393401
*/
394402
if( nToDel>0 ){
395403
--- src/allrepo.c
+++ src/allrepo.c
@@ -286,10 +286,13 @@
286 }else{
287 db_multi_exec("%s", blob_sql_text(&sql));
288 }
289 }
290 db_end_transaction(0);
 
 
 
291 return;
292 }else if( strncmp(zCmd, "add", n)==0 ){
293 int j;
294 Blob fn = BLOB_INITIALIZER;
295 Blob sql = BLOB_INITIALIZER;
@@ -315,10 +318,13 @@
315 }else{
316 db_multi_exec("%s", blob_sql_text(&sql));
317 }
318 }
319 db_end_transaction(0);
 
 
 
320 return;
321 }else if( strncmp(zCmd, "info", n)==0 ){
322 zCmd = "info";
323 showLabel = 1;
324 quiet = 1;
@@ -385,10 +391,12 @@
385 if( stopOnError && rc ){
386 break;
387 }
388 }
389 db_finalize(&q);
 
 
390
391 /* If any repositories whose names appear in the ~/.fossil file could not
392 ** be found, remove those names from the ~/.fossil file.
393 */
394 if( nToDel>0 ){
395
--- src/allrepo.c
+++ src/allrepo.c
@@ -286,10 +286,13 @@
286 }else{
287 db_multi_exec("%s", blob_sql_text(&sql));
288 }
289 }
290 db_end_transaction(0);
291 blob_reset(&sql);
292 blob_reset(&fn);
293 blob_reset(&extra);
294 return;
295 }else if( strncmp(zCmd, "add", n)==0 ){
296 int j;
297 Blob fn = BLOB_INITIALIZER;
298 Blob sql = BLOB_INITIALIZER;
@@ -315,10 +318,13 @@
318 }else{
319 db_multi_exec("%s", blob_sql_text(&sql));
320 }
321 }
322 db_end_transaction(0);
323 blob_reset(&sql);
324 blob_reset(&fn);
325 blob_reset(&extra);
326 return;
327 }else if( strncmp(zCmd, "info", n)==0 ){
328 zCmd = "info";
329 showLabel = 1;
330 quiet = 1;
@@ -385,10 +391,12 @@
391 if( stopOnError && rc ){
392 break;
393 }
394 }
395 db_finalize(&q);
396
397 blob_reset(&extra);
398
399 /* If any repositories whose names appear in the ~/.fossil file could not
400 ** be found, remove those names from the ~/.fossil file.
401 */
402 if( nToDel>0 ){
403

Keyboard Shortcuts

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