From: Andrew Tridgell Date: Thu, 31 Aug 2000 23:01:28 +0000 (+0000) Subject: a simple fix to the memory problems with the string pool patch. The X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/a20aa42ac40f04d2fd7d9cbee3cb55d5cd57d96b a simple fix to the memory problems with the string pool patch. The string pools conflict with the lastdir memory saving tricks. --- diff --git a/flist.c b/flist.c index 5393392a..4ad30964 100644 --- a/flist.c +++ b/flist.c @@ -534,7 +534,7 @@ struct file_struct *make_file(int f, char *fname, struct string_area **ap, if (lastdir && strcmp(fname, lastdir)==0) { file->dirname = lastdir; } else { - file->dirname = STRDUP(ap, fname); + file->dirname = strdup(fname); lastdir = file->dirname; } file->basename = STRDUP(ap, p+1); @@ -579,7 +579,7 @@ struct file_struct *make_file(int f, char *fname, struct string_area **ap, if (lastdir && strcmp(lastdir, flist_dir)==0) { file->basedir = lastdir; } else { - file->basedir = STRDUP(ap, flist_dir); + file->basedir = strdup(flist_dir); lastdir = file->basedir; } } else {