ENGINE-9: removed mem leak ENGINE-9
authorKrista Bennett <krista@pep-project.org>
Fri, 30 Jun 2017 06:01:54 +0200
branchENGINE-9
changeset 19028f8afc97237e
parent 1901 eabedbfc80e6
child 1915 3d9ac25aae84
ENGINE-9: removed mem leak
src/mime.c
     1.1 --- a/src/mime.c	Fri Jun 30 05:53:46 2017 +0200
     1.2 +++ b/src/mime.c	Fri Jun 30 06:01:54 2017 +0200
     1.3 @@ -1442,6 +1442,8 @@
     1.4                  bloblist_t *_a = bloblist_add(msg->attachments, data, size,
     1.5                          mime_type, _filename);
     1.6                  free(_filename);
     1.7 +                free_rid_list(resource_id_list);
     1.8 +                resource_id_list = NULL;
     1.9                  if (_a == NULL)
    1.10                      return PEP_OUT_OF_MEMORY;
    1.11                  if (msg->attachments == NULL)