diff options
author | Sverker Eriksson <[email protected]> | 2013-02-13 18:57:13 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-02-13 18:57:23 +0100 |
commit | 7fda8c136ae1561aa10e00ce2537b48b7051dc36 (patch) | |
tree | 29cf3b1fef1f5494194fa4d3184feaa43e628ed9 /erts/emulator | |
parent | 7505ceff94dddb325543e32f3b8471a608097dc9 (diff) | |
parent | b726ddb701dda96ad180509c51ba52dc1a9cc79e (diff) | |
download | otp-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.c | 2 |
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) { |