]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Fixed a small memory leak in log_oper() log rotation
authormortenp <none@none>
Wed, 21 Mar 2007 18:07:45 +0000 (05:07 +1100)
committermortenp <none@none>
Wed, 21 Mar 2007 18:07:45 +0000 (05:07 +1100)
ChangeLog
src/log_oper.c

index f256c102349c69e51b90414fab8aaea27ea8477a..65bd2161269ee7db00730651b0e28945e40b3016 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+ o Fixed a small memory leak in log_oper() log rotation
  o Fixed address parsing for cases with quotes and multiple addresses
  o Added contrib/recievestrip/ MIME processor (Sascha Sommer)
  o Fixed digest multipart boundary (Thanks to Ulrich Mueller)
index 0de1e5cf0498c420bbea8ba8051a2eed73b5f449..ca3d32418b889ba6690e040923bfcf374367b6c9 100644 (file)
@@ -62,8 +62,8 @@ int log_oper(const char *prefix, const char *basename, const char *fmt, ...)
                if(rename(logfilename, tmp) < 0) {
                        log_error(LOG_ARGS, "Could not rename %s,%s",
                                        logfilename, tmp);
-               myfree(tmp);
                }
+               myfree(tmp);
        }
        
        fd = open(logfilename, O_RDWR|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR);