Added call to mailmime_parameter_free to deal with enomem cases which do not originate in the setup of the param data structure. (See trac issue 21)
authorKrista Grothoff <krista@pep-project.org>
Sun, 10 Jul 2016 08:32:24 +0200
changeset 81972e21a35eb23
parent 818 45c3c2836b67
child 820 03e6929fe32b
Added call to mailmime_parameter_free to deal with enomem cases which do not originate in the setup of the param data structure. (See trac issue 21)
src/etpan_mime.c
     1.1 --- a/src/etpan_mime.c	Sat Jul 09 16:47:45 2016 +0200
     1.2 +++ b/src/etpan_mime.c	Sun Jul 10 08:32:24 2016 +0200
     1.3 @@ -136,6 +136,8 @@
     1.4      if (content->ct_parameters == NULL)
     1.5          if (parameters)
     1.6              clist_free(parameters);
     1.7 +    if (param)
     1.8 +        mailmime_parameter_free(param);
     1.9  
    1.10  	return NULL;
    1.11  }