# HG changeset patch # User mmj # Date 1108407128 -39600 # Node ID 5177ad983444548df6773c3a62ed20c03c01a584 # Parent 030dfa571be425cfbde13e1141bd20ca240d38d8 don't mystrdup unless needed diff -r 030dfa571be4 -r 5177ad983444 ChangeLog --- a/ChangeLog Mon Feb 14 20:32:02 2005 +1100 +++ b/ChangeLog Tue Feb 15 05:52:08 2005 +1100 @@ -1,3 +1,4 @@ +1.2.4 o Unlink totally harmless .lock files in subscribers dir. o Make it possible to specify more than one listaddress in LISTDIR/control/listaddress. The first one is the "real" one. diff -r 030dfa571be4 -r 5177ad983444 VERSION --- a/VERSION Mon Feb 14 20:32:02 2005 +1100 +++ b/VERSION Tue Feb 15 05:52:08 2005 +1100 @@ -1,1 +1,1 @@ -1.2.3 +1.2.4 diff -r 030dfa571be4 -r 5177ad983444 src/mlmmj-sub.c --- a/src/mlmmj-sub.c Mon Feb 14 20:32:02 2005 +1100 +++ b/src/mlmmj-sub.c Tue Feb 15 05:52:08 2005 +1100 @@ -359,13 +359,13 @@ switch(typesub) { default: case SUB_NORMAL: - subdir = mystrdup("/subscribers.d/"); + subdir = "/subscribers.d/"; break; case SUB_DIGEST: - subdir = mystrdup("/digesters.d/"); + subdir = "/digesters.d/"; break; case SUB_NOMAIL: - subdir = mystrdup("/nomailsubs.d/"); + subdir = "/nomailsubs.d/"; break; } @@ -380,8 +380,6 @@ exit(EXIT_FAILURE); } - myfree(subdir); - sublock = myexcllock(sublockfd); if(sublock < 0) { log_error(LOG_ARGS, "Error locking '%s' file", diff -r 030dfa571be4 -r 5177ad983444 src/mlmmj-unsub.c --- a/src/mlmmj-unsub.c Mon Feb 14 20:32:02 2005 +1100 +++ b/src/mlmmj-unsub.c Tue Feb 15 05:52:08 2005 +1100 @@ -381,13 +381,13 @@ switch(typesub) { default: case SUB_NORMAL: - subdir = mystrdup("/subscribers.d/"); + subdir = "/subscribers.d/"; break; case SUB_DIGEST: - subdir = mystrdup("/digesters.d/"); + subdir = "/digesters.d/"; break; case SUB_NOMAIL: - subdir = mystrdup("/nomailsubs.d/"); + subdir = "/nomailsubs.d/"; break; } @@ -402,7 +402,6 @@ if(is_subbed_in(subddirname, address)) { /* Address is not subscribed, so exit silently */ myfree(subddirname); - myfree(subdir); myfree(listaddr); exit(EXIT_SUCCESS); } @@ -415,7 +414,6 @@ log_error(LOG_ARGS, "Could not opendir(%s)", subddirname); myfree(subddirname); - myfree(subdir); myfree(listaddr); exit(EXIT_FAILURE); } @@ -563,7 +561,6 @@ } closedir(subddir); - myfree(subdir); notifysub = statctrl(listdir, "notifysub");