Commit 0417f83b 0417f83b0dd75d26367ef2569d7f7437a6bead2a by Sergey Poznyakoff

Fix NULL dereference

* libmailutils/mime/mimehdr.c (mu_mime_param_free): Check if argument
is NULL.
1 parent 480f7d0b
......@@ -48,10 +48,13 @@
void
mu_mime_param_free (struct mu_mime_param *p)
{
if (p)
{
free (p->lang);
free (p->cset);
free (p->value);
free (p);
}
}
/* Treat ITEM as a pointer to struct mu_mime_param and reclaim all
......