Commit 0bd9e175 0bd9e1759058e0d7b1e3e4be205a65e1e1bedab2 by Sergey Poznyakoff

Bugfix

* libproto/mailer/prog.c (url_to_argv): Free ws only if
it was initialized.
1 parent 0283eeaa
......@@ -349,7 +349,8 @@ url_to_argv (mu_url_t url, mu_message_t msg,
wsflags |= MU_WRDSF_REUSE;
}
argv[i+1] = NULL;
mu_wordsplit_free (&ws);
if (wsflags & MU_WRDSF_REUSE)
mu_wordsplit_free (&ws);
*pargc = argc;
*pargv = argv;
......