]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Ensure that mlmmjsend, mlmmjbounce, mlmmjunsub are freed on abnormal exit
authorRichard Mortimer <none@none>
Tue, 25 Jan 2011 19:22:27 +0000 (19:22 +0000)
committerRichard Mortimer <none@none>
Tue, 25 Jan 2011 19:22:27 +0000 (19:22 +0000)
src/mlmmj-maintd.c

index a6a26b0883759c0be63f3fcb804b7020feb51444..e416b06d3071251695f99a62fb93fff7f0bb296e 100644 (file)
@@ -1104,6 +1104,9 @@ int main(int argc, char **argv)
                if(chdir(dirlists) < 0) {
                        log_error(LOG_ARGS, "Could not chdir(%s).",
                                        dirlists);
+                       myfree(mlmmjbounce);
+                       myfree(mlmmjsend);
+                       myfree(mlmmjunsub);
                        exit(EXIT_FAILURE);
                }