summaryrefslogtreecommitdiff
path: root/ticket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ticket.c')
-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;
}