diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-02-03 14:44:07 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-02-03 14:44:07 +0800 |
commit | c36c5a02153388c43b7615614bb7cf44ec5ccd0b (patch) | |
tree | 9522d3812a2b27e85ee5fc6ad07999f91399503b | |
parent | 1616421120fc238beda654696541275c9aa0744c (diff) |
Disable ticket history attachment memory release
as it causes a crash.
-rw-r--r-- | ticket.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -368,12 +368,14 @@ void rtclient_ticket_history_list(unsigned int id, bool long_format, void rtclient_ticket_history_free(struct rtclient_ticket_history *history) { attachment_list *list = history->attachments; + /* for (size_t i = 0; i < list->length; i++) { history_attachment *attachment = list->attachments[i]; if (attachment->file_name) free(attachment->file_name); free(attachment); } + */ free(list); free(history->created); free(history->creator); @@ -388,5 +390,4 @@ void rtclient_ticket_history_free(struct rtclient_ticket_history *history) if (history->field) free(history->field); free(history); - history = NULL; } |