jcs
/subtext
/amendments
/472
board: Print bile error when marshalling fails, use xfree
jcs made amendment 472 about 1 year ago
--- board.c Fri Apr 7 14:11:08 2023
+++ board.c Sat Apr 8 17:41:21 2023
@@ -1731,8 +1731,8 @@ board_toss_ftn_message(struct board *board,
board_ftn_post_object_fields, nboard_ftn_post_object_fields,
&post, &pdata, &psize);
if (bret != 0 || psize == 0) {
- logger_printf("[board] Failed to marshall new post %s %s",
- fidomsg->area, fidomsg->msgid_orig);
+ logger_printf("[board] Failed to marshall new post %s %s: %d",
+ fidomsg->area, fidomsg->msgid_orig, bile_error(board->bile));
ret = -1;
goto done;
}
@@ -1774,7 +1774,7 @@ done:
}
}
if (msgid_cache != NULL)
- free(msgid_cache);
+ xfree(&msgid_cache);
return ret;
}