Mercurial > hg > mlmmj
changeset 463:030dfa571be4
free(subdir) after it's used, sigh. Remove superflous logging from mlmmj-maintd
author | mmj |
---|---|
date | Mon, 14 Feb 2005 20:32:02 +1100 |
parents | 439a151b29d6 |
children | 5177ad983444 |
files | src/mlmmj-maintd.c src/mlmmj-sub.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mlmmj-maintd.c Mon Feb 14 03:58:29 2005 +1100 +++ b/src/mlmmj-maintd.c Mon Feb 14 20:32:02 2005 +1100 @@ -390,7 +390,6 @@ } subfilename = concatstr(3, dirname, dp->d_name, "/subscribers"); if(stat(subfilename, &st) < 0) { - log_error(LOG_ARGS, "Could not stat(%s)", subfilename); myfree(archivefilename); myfree(subfilename); continue;
--- a/src/mlmmj-sub.c Mon Feb 14 03:58:29 2005 +1100 +++ b/src/mlmmj-sub.c Mon Feb 14 20:32:02 2005 +1100 @@ -370,7 +370,6 @@ } subfilename = concatstr(3, listdir, subdir, chstr); - myfree(subdir); sublockname = concatstr(5, listdir, subdir, ".", chstr, ".lock"); sublockfd = open(sublockname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); @@ -381,6 +380,8 @@ exit(EXIT_FAILURE); } + myfree(subdir); + sublock = myexcllock(sublockfd); if(sublock < 0) { log_error(LOG_ARGS, "Error locking '%s' file",