Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'fdm/fix_file_driver_memory_leak' into master-pu

  • Loading branch information...
commit 5ddf4118617d7e5bac5b889025aa0f3903796a49 2 parents e12e393 + 7b23281
@gustehn gustehn authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 erts/emulator/drivers/common/efile_drv.c
View
6 erts/emulator/drivers/common/efile_drv.c
@@ -833,6 +833,12 @@ file_stop(ErlDrvData e)
if (desc->read_binp) {
driver_free_binary(desc->read_binp);
}
+ while (desc->cq_head) {
+ struct t_data *n = desc->cq_head->next;
+ void (*f)(void *) = desc->cq_head->free;
+ f(desc->cq_head);
+ desc->cq_head = n;
+ }
EF_FREE(desc);
}
Please sign in to comment.
Something went wrong with that request. Please try again.