Fossil

Check-in [ed5c19cd]
Login

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

Overview
Comment:Fix an invalid call to free() that occurs when "fossil add ." is run. Ticket [157ef3e5a7a06b].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:ed5c19cd435421dbeece014a7991bd940c3cd7b3
User & Date: drh 2011-04-18 12:01:01
Context
2011-04-18
12:29
Add the PT() and PDT() macros for extracting query parameters with leading and trailing whitespace removed. Use those macros to in the check-in edit page. Do not create branches or tags with empty names. Ticket [e613f452fada00]. check-in: 655e7820 user: drh tags: trunk
12:01
Fix an invalid call to free() that occurs when "fossil add ." is run. Ticket [157ef3e5a7a06b]. check-in: ed5c19cd user: drh tags: trunk
2011-04-15
20:42
Make an entry in the access log when a login transfers from one member of a login group to another. check-in: 7b700dfa user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/add.c.

223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
      char *zTreeName = &zName[nRoot];
      db_multi_exec(
         "INSERT OR IGNORE INTO sfile(x)"
         "  SELECT %Q WHERE NOT EXISTS(SELECT 1 FROM vfile WHERE pathname=%Q)",
         zTreeName, zTreeName
      );
    }
    free(zName);
  }
  glob_free(pIgnore);

  add_files_in_sfile(vid);  
  db_end_transaction(0);
}








|







223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
      char *zTreeName = &zName[nRoot];
      db_multi_exec(
         "INSERT OR IGNORE INTO sfile(x)"
         "  SELECT %Q WHERE NOT EXISTS(SELECT 1 FROM vfile WHERE pathname=%Q)",
         zTreeName, zTreeName
      );
    }
    blob_reset(&fullName);
  }
  glob_free(pIgnore);

  add_files_in_sfile(vid);  
  db_end_transaction(0);
}