Fossil

Check-in [9ef4a184]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a large memory leak in the "fossil reconstruct" command. Ticket [fc1a61329403f605c494]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9ef4a184f4b1aa6ae7b9635ec2b0c7a325043df5
User & Date: drh 2010-09-09 10:02:09
Context
2010-09-09
20:04
merged trunk to branch check-in: ef6979ea user: wolfgang tags: wolfgangFormat2CSS
10:31
Merge in changes from the wolfgangFormat2CSS branch. check-in: 34f9b9de user: drh tags: trunk
10:02
Fix a large memory leak in the "fossil reconstruct" command. Ticket [fc1a61329403f605c494] check-in: 9ef4a184 user: drh tags: trunk
09:59
Allow ~ and % characters in the URL. Ticket [74ccf51c7d24414b1]. check-in: a203674a user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/rebuild.c.

444
445
446
447
448
449
450


451
452
453
454
455
456
457
        continue;
      }
      blob_appendf(&path, "%s/%s", g.argv[3], pEntry->d_name);
      if( blob_read_from_file(&aContent, blob_str(&path))==-1 ){
        fossil_panic("Some unknown error occurred while reading \"%s\"", blob_str(&path));
      }
      content_put(&aContent, 0, 0);


    }
  }
  else {
    fossil_panic("Encountered error %d while trying to open \"%s\".", errno, g.argv[3]);
  }

  rebuild_db(0, 1);







>
>







444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
        continue;
      }
      blob_appendf(&path, "%s/%s", g.argv[3], pEntry->d_name);
      if( blob_read_from_file(&aContent, blob_str(&path))==-1 ){
        fossil_panic("Some unknown error occurred while reading \"%s\"", blob_str(&path));
      }
      content_put(&aContent, 0, 0);
      blob_reset(&path);
      blob_reset(&aContent);
    }
  }
  else {
    fossil_panic("Encountered error %d while trying to open \"%s\".", errno, g.argv[3]);
  }

  rebuild_db(0, 1);