diff options
author | Sverker Eriksson <[email protected]> | 2015-09-22 15:29:30 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-11-26 19:48:10 +0100 |
commit | bb1869148129c8ad30167e74aa6b4d7f16798116 (patch) | |
tree | f3d0a6d846fe62e447780be158b63dbc7c5ff108 /erts/emulator/drivers/common | |
parent | 5c9557a814ac993a72d7b045ee374745d6dcab79 (diff) | |
download | otp-bb1869148129c8ad30167e74aa6b4d7f16798116.tar.gz otp-bb1869148129c8ad30167e74aa6b4d7f16798116.tar.bz2 otp-bb1869148129c8ad30167e74aa6b4d7f16798116.zip |
erts: Remove double free in efile_drv
That double free is probably very seldom invoked as the port is already
gone leading to free_data being called instead of file_async_ready.
Diffstat (limited to 'erts/emulator/drivers/common')
-rw-r--r-- | erts/emulator/drivers/common/efile_drv.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c index 8aff6c1865..3b6abec25e 100644 --- a/erts/emulator/drivers/common/efile_drv.c +++ b/erts/emulator/drivers/common/efile_drv.c @@ -2581,7 +2581,6 @@ file_async_ready(ErlDrvData e, ErlDrvThreadData data) case FILE_CLOSE_ON_PORT_EXIT: /* See file_stop. However this is never invoked after the port is killed. */ free_data(data); - EF_FREE(desc); desc = NULL; /* This is it for this port, so just send dtrace and return, avoid doing anything to the freed data */ DTRACE6(efile_drv_return, sched_i1, sched_i2, sched_utag, |