src/transport.c
changeset 96 fe4931a0413b
parent 95 546e631421b9
child 97 b855132fb7e3
     1.1 --- a/src/transport.c	Tue Mar 10 15:23:46 2015 +0100
     1.2 +++ b/src/transport.c	Tue Mar 10 15:27:29 2015 +0100
     1.3 @@ -595,6 +595,7 @@
     1.4          free_stringlist(msg->references);
     1.5          free_stringlist(msg->keywords);
     1.6          free(msg->comments);
     1.7 +        free_stringpair_map(msg->opt_fields);
     1.8          free(msg);
     1.9      }
    1.10  }
    1.11 @@ -721,6 +722,12 @@
    1.12              goto enomem;
    1.13      }
    1.14  
    1.15 +    if (src->opt_fields) {
    1.16 +        msg->opt_fields = stringpair_map_dup(src->opt_fields);
    1.17 +        if (msg->opt_fields == NULL)
    1.18 +            goto enomem;
    1.19 +    }
    1.20 +
    1.21      msg->enc_format = src->enc_format;
    1.22  
    1.23      return msg;