X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fmessages.c;h=47f6f41c5eafb2e90c4efa992a7b57d1637f5268;hp=96b35a69a06856086cd68b646399c8be9ed1b58b;hb=95a9d30497849472db7135888eb2df1fc4a721b9;hpb=dcfbe351282f76cc76f8a855aace704793c09377 diff --git a/webcit/messages.c b/webcit/messages.c index 96b35a69a..47f6f41c5 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -1317,10 +1317,9 @@ void post_message(void) * Transfer control of this memory from the upload struct * to the attachment struct. */ - att->Data = NewStrBufPlain(WCC->upload, WCC->upload_length); - free(WCC->upload); - WCC->upload_length = 0; + att->Data = WCC->upload; WCC->upload = NULL; + WCC->upload_length = 0; display_enter(); return; }