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,6 +349,7 @@ url_to_argv (mu_url_t url, mu_message_t msg, ...@@ -349,6 +349,7 @@ url_to_argv (mu_url_t url, mu_message_t msg,
349 wsflags |= MU_WRDSF_REUSE; 349 wsflags |= MU_WRDSF_REUSE;
350 } 350 }
351 argv[i+1] = NULL; 351 argv[i+1] = NULL;
352 if (wsflags & MU_WRDSF_REUSE)
352 mu_wordsplit_free (&ws); 353 mu_wordsplit_free (&ws);
353 354
354 *pargc = argc; 355 *pargc = argc;
......