Change memory allocation from heap to stack
[sim/e2-interface.git] / e2sim / src / base / e2sim.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 372cc9d..852cbdd
@@ -165,7 +165,7 @@ int E2Sim::run_loop(int argc, char* argv[]){
   
   sctp_buffer_t data;
 
-  char *error_buf = (char*)calloc(300, sizeof(char));
+  char error_buf[300] = {0, };
   size_t errlen;
 
   asn_check_constraints(&asn_DEF_E2AP_PDU, pdu_setup, error_buf, &errlen);