Skip to content
Snippets Groups Projects
Commit 8ad4ad27 authored by rswindell's avatar rswindell
Browse files

Only call smb_freemsgmem() if smb_getmsghdr() returns success.

parent 045b1698
No related branches found
No related tags found
No related merge requests found
......@@ -455,10 +455,10 @@ bool sbbs_t::qwktomsg(FILE *qwk_fp, char *hdrblk, char fromhub, uint subnum
smb_hfield_str(&msg,FIDOREPLYID,remsg.ftn_msgid);
smb_updatethread(&smb,&remsg,smb.status.last_msg+1);
smb_freemsgmem(&remsg);
}
smb_unlockmsghdr(&smb,&remsg);
smb_freemsgmem(&remsg);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment