aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_nif.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-04-11 16:11:37 +0200
committerSverker Eriksson <[email protected]>2017-04-11 16:11:37 +0200
commit37bdfb3b5b56c2311db1780b052b7e2c0f139cef (patch)
treea47c34ab8c34e4d2470f44019fd38c512493f17b /erts/emulator/beam/erl_nif.c
parent5e8f498b810aeae9cb4c9c3715fe62a33b84cdde (diff)
downloadotp-37bdfb3b5b56c2311db1780b052b7e2c0f139cef.tar.gz
otp-37bdfb3b5b56c2311db1780b052b7e2c0f139cef.tar.bz2
otp-37bdfb3b5b56c2311db1780b052b7e2c0f139cef.zip
erts: Init refc=1 in erts_bin_drv_alloc*
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r--erts/emulator/beam/erl_nif.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c
index deed74ee49..94d25ba85a 100644
--- a/erts/emulator/beam/erl_nif.c
+++ b/erts/emulator/beam/erl_nif.c
@@ -1074,7 +1074,6 @@ int enif_alloc_binary(size_t size, ErlNifBinary* bin)
if (refbin == NULL) {
return 0; /* The NIF must take action */
}
- erts_refc_init(&refbin->refc, 1);
bin->size = size;
bin->data = (unsigned char*) refbin->orig_bytes;