part = g_list_nth_data(parts, pos);
dummy = construct_virtual_filename_from_mime_part(part, pos);
- if (strcmp(dummy, fn) == 0)
+ if (strcmp(dummy, fn) == 0) {
+ g_free(dummy);
return part;
- else
+ } else {
+ g_free(dummy);
return NULL;
+ }
}
} else {
g_string_append_printf(appendix, "<A href=\"attachment:%s\">%s</A>: %s<BR>\n", filename, filename, content_type);
}
+ g_free(virtual_filename);
}
attachment = attachment->next;
}