aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-02-13 18:57:13 +0100
committerSverker Eriksson <[email protected]>2013-02-13 18:57:23 +0100
commit7fda8c136ae1561aa10e00ce2537b48b7051dc36 (patch)
tree29cf3b1fef1f5494194fa4d3184feaa43e628ed9 /erts/emulator
parent7505ceff94dddb325543e32f3b8471a608097dc9 (diff)
parentb726ddb701dda96ad180509c51ba52dc1a9cc79e (diff)
downloadotp-7fda8c136ae1561aa10e00ce2537b48b7051dc36.tar.gz
otp-7fda8c136ae1561aa10e00ce2537b48b7051dc36.tar.bz2
otp-7fda8c136ae1561aa10e00ce2537b48b7051dc36.zip
Merge branch 'sverk/efile_drv-memleak'
* sverk/efile_drv-memleak: erts: Fix documentation about 10 default async threads. erts: Fix memory leak in efile_drv.c OTP-10841
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/drivers/common/efile_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c
index fda6cf2e53..2279fec72a 100644
--- a/erts/emulator/drivers/common/efile_drv.c
+++ b/erts/emulator/drivers/common/efile_drv.c
@@ -2263,6 +2263,8 @@ file_stop(ErlDrvData e)
desc->fd = FILE_FD_INVALID;
desc->flags = 0;
cq_execute(desc);
+ } else {
+ EF_FREE(desc);
}
} else {
if (desc->fd != FILE_FD_INVALID) {