summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-02-03 14:44:07 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-02-03 14:44:07 +0800
commitc36c5a02153388c43b7615614bb7cf44ec5ccd0b (patch)
tree9522d3812a2b27e85ee5fc6ad07999f91399503b
parent1616421120fc238beda654696541275c9aa0744c (diff)
Disable ticket history attachment memory release
as it causes a crash.
-rw-r--r--ticket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ticket.c b/ticket.c
index b3310be..0f32f19 100644
--- a/ticket.c
+++ b/ticket.c
@@ -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;
}