mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 23:23:04 +01:00
Fixed wrong memory management that caused the server to crash.
This commit is contained in:
parent
f77f0cf07c
commit
22d2ed8879
@ -861,7 +861,7 @@ int CLIB_ROUTINE main(int argc, char **argv)
|
||||
SVC_STARTED(service);
|
||||
alloced = tddba->head_of_mem_list;
|
||||
while (alloced != 0) {
|
||||
free(alloced->memory);
|
||||
delete alloced->memory;
|
||||
alloced = alloced->mem_next;
|
||||
}
|
||||
|
||||
@ -877,13 +877,13 @@ int CLIB_ROUTINE main(int argc, char **argv)
|
||||
tmp1 = tddba->head_of_files_list;
|
||||
tddba->head_of_files_list =
|
||||
tddba->head_of_files_list->open_files_next;
|
||||
free(tmp1);
|
||||
delete tmp1;
|
||||
}
|
||||
|
||||
while (tddba->head_of_mem_list != 0) {
|
||||
tmp2 = tddba->head_of_mem_list;
|
||||
tddba->head_of_mem_list = tddba->head_of_mem_list->mem_next;
|
||||
free(tmp2);
|
||||
delete tmp2;
|
||||
}
|
||||
|
||||
service->svc_handle = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user