Fossil

Check-in [3541444d]
Login

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

Overview
Comment:Fix a minor memory leak.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3541444d9d15cc62789b2061e8b89fbbf8c705fe
User & Date: drh 2010-11-11 21:36:10
Context
2010-11-11
22:04
Add support for "magic" tags "ckout", "prev" and "next". Show the version updating to when performing an "update". check-in: 5ea9ad37 user: drh tags: trunk
21:36
Fix a minor memory leak. check-in: 3541444d user: drh tags: trunk
20:33
Further refinements to the Fossil-versus-Git document. check-in: 8f4d5314 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

685
686
687
688
689
690
691

692
693
694
695
696
697
698
  if( useAttach ){
    db_open_or_attach(zDbName, "configdb");
    g.dbConfig = 0;
  }else{
    g.dbConfig = openDatabase(zDbName);
  }
  g.configOpen = 1;

}

/*
** If zDbName is a valid local database file, open it and return
** true.  If it is not a valid local database file, return 0.
*/
static int isValidLocalDb(const char *zDbName){







>







685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
  if( useAttach ){
    db_open_or_attach(zDbName, "configdb");
    g.dbConfig = 0;
  }else{
    g.dbConfig = openDatabase(zDbName);
  }
  g.configOpen = 1;
  free(zDbName);
}

/*
** If zDbName is a valid local database file, open it and return
** true.  If it is not a valid local database file, return 0.
*/
static int isValidLocalDb(const char *zDbName){