- /*
- * ALF - we need to make sure we dynamically allocate interesting
- * members, otherwise we can't free the msginfo using
- * procmsg_msginfo_free() later on.
- */
-
- if (msginfo) {
- if (msginfo->date_t) {
- procheader_date_get_localtime(date, sizeof date, msginfo->date_t);
- msginfo->date = g_strdup(date);
- }
+ if (msginfo && msginfo->date_t) {
+ procheader_date_get_localtime(date, sizeof date, msginfo->date_t);
+ if (msginfo->date) g_free(msginfo->date);
+ msginfo->date = g_strdup(date);