summaryrefslogtreecommitdiff
path: root/pith/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/send.c')
-rw-r--r--pith/send.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pith/send.c b/pith/send.c
index 460f6a24..dc5a500f 100644
--- a/pith/send.c
+++ b/pith/send.c
@@ -3711,8 +3711,10 @@ posting_characterset(void *data, char *preferred_charset, MsgPart mp)
*/
charsetmap = init_charsetchecker(preferred_charset);
- if(!charsetmap)
+ if(!charsetmap){
+ if (ucs != NULL) fs_give((void **) &ucs);
return(utf8);
+ }
validbitmap = ~0;
while((validbitmap & ~0x1) && (*ucsp)){