From 1deff3fd1bc83481ffb56db69d88a718b6a15c7f Mon Sep 17 00:00:00 2001 From: Michael Swan Date: Mon, 27 May 2019 00:02:54 -0500 Subject: Fix wxe_driver improper realloc call --- lib/wx/c_src/wxe_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/wx/c_src/wxe_driver.c') diff --git a/lib/wx/c_src/wxe_driver.c b/lib/wx/c_src/wxe_driver.c index c9d299e0df..b94ec2f32d 100644 --- a/lib/wx/c_src/wxe_driver.c +++ b/lib/wx/c_src/wxe_driver.c @@ -214,7 +214,7 @@ standard_outputv(ErlDrvData drv_data, ErlIOVec* ev) if(binref == NULL) { /* realloc */ max = sd->max_bins + DEF_BINS; - driver_realloc(sd->bin, sizeof(WXEBinRef)*max); + sd->bin = driver_realloc(sd->bin, sizeof(WXEBinRef)*max); for(i=sd->max_bins; i < max; i++) { sd->bin[i].from = 0; } -- cgit v1.2.3