mirror of
https://github.com/simon987/sist2.git
synced 2025-04-18 17:56:44 +00:00
Memory leak fix #37
This commit is contained in:
parent
dedf9287b2
commit
3058c55510
@ -202,9 +202,8 @@ void delete_queue(int max) {
|
||||
Indexer->line_head = tmp->next;
|
||||
if (Indexer->line_head == NULL) {
|
||||
Indexer->line_tail = NULL;
|
||||
} else {
|
||||
free(tmp);
|
||||
}
|
||||
free(tmp);
|
||||
Indexer->queued -= 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user