Fossil

Changes On Branch git-import-memleak
Login

Changes On Branch git-import-memleak

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

Changes In Branch git-import-memleak Excluding Merge-Ins

This is equivalent to a diff from c865e1a0fc to 81bfdca9e5

2019-12-19
15:13
Never mind.... Was: Attempt to fix a memory leak on Git import. ... (Closed-Leaf check-in: 81bfdca9e5 user: drh tags: git-import-memleak)
14:40
Moved a blob_reset() to fix a leak reported in https://fossil-scm.org/forum/forumpost/6871eaaa07. ... (check-in: 8628cbd428 user: stephan tags: trunk)
2019-12-18
15:19
Comment updates that should have been in the previous check-in, but I didn't press the "Save" button on my editor, and I failed to adequately review the changes before committed - I should follow my own checklists... ... (check-in: c865e1a0fc user: drh tags: trunk)
15:11
Add support for magic conversion of /doc/$SELF/ URIs by expanding the $SELF to the version of the currently displayed document. ... (check-in: 703e62a68e user: drh tags: trunk)

Changes to src/import.c.
321
322
323
324
325
326
327

328
329
330
331
332
333
334
  free(zFromBranch);
  db_multi_exec("INSERT INTO xbranch(tname, brnm) VALUES(%Q,%Q)",
                gg.zMark, gg.zBranch);
  blob_appendf(&record, "U %F\n", gg.zUser);
  md5sum_blob(&record, &cksum);
  blob_appendf(&record, "Z %b\n", &cksum);
  fast_insert_content(&record, gg.zMark, 1, 1);

  blob_reset(&cksum);

  /* The "git fast-export" command might output multiple "commit" lines
  ** that reference a tag using "refs/tags/TAGNAME".  The tag should only
  ** be applied to the last commit that is output.  The problem is we do not
  ** know at this time if the current commit is the last one to hold this
  ** tag or not.  So make an entry in the XTAG table to record this tag







>







321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
  free(zFromBranch);
  db_multi_exec("INSERT INTO xbranch(tname, brnm) VALUES(%Q,%Q)",
                gg.zMark, gg.zBranch);
  blob_appendf(&record, "U %F\n", gg.zUser);
  md5sum_blob(&record, &cksum);
  blob_appendf(&record, "Z %b\n", &cksum);
  fast_insert_content(&record, gg.zMark, 1, 1);
  blob_reset(&record);
  blob_reset(&cksum);

  /* The "git fast-export" command might output multiple "commit" lines
  ** that reference a tag using "refs/tags/TAGNAME".  The tag should only
  ** be applied to the last commit that is output.  The problem is we do not
  ** know at this time if the current commit is the last one to hold this
  ** tag or not.  So make an entry in the XTAG table to record this tag