mirror of
https://github.com/sist2app/sist2.git
synced 2026-03-29 11:31:35 +00:00
Memory leak fix #37
This commit is contained in:
@@ -202,9 +202,8 @@ void delete_queue(int max) {
|
|||||||
Indexer->line_head = tmp->next;
|
Indexer->line_head = tmp->next;
|
||||||
if (Indexer->line_head == NULL) {
|
if (Indexer->line_head == NULL) {
|
||||||
Indexer->line_tail = NULL;
|
Indexer->line_tail = NULL;
|
||||||
} else {
|
|
||||||
free(tmp);
|
|
||||||
}
|
}
|
||||||
|
free(tmp);
|
||||||
Indexer->queued -= 1;
|
Indexer->queued -= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user