commit d5a6ce317bb4cff5f8e096a9ebc023c23eb33216 from: Martijn van Duren date: Wed Apr 3 08:17:40 2019 UTC Plug a memory leak. Major leak still pending commit - 6fdaa2e11e3cb2126b05d32c8d0adbcd25288eba commit + d5a6ce317bb4cff5f8e096a9ebc023c23eb33216 blob - 1badcb9d08ab4839113cd97ba4ecbf55c9a4ccb0 blob + 4ae90137a9c9a3edeb85967dd1c96a3ff45c0c31 --- smtp_proc.c +++ smtp_proc.c @@ -177,9 +177,9 @@ static void smtp_newline(int fd, short event, void *arg) { struct event *stdinev = (struct event *)arg; - char *line = NULL, *linedup = NULL; - size_t linesize = 0; - size_t dupsize = 0; + static char *line = NULL, *linedup = NULL; + static size_t linesize = 0; + static size_t dupsize = 0; ssize_t linelen; char *start, *end, *type, *direction, *phase, *params; int version;