Memory leakage correction

This commit is contained in:
Baudouin Chauviere 2019-06-26 10:50:38 -06:00
parent 56557b94e7
commit 8f21a3b177
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,8 @@ FILE* create_wireL_report_timing_tcl_file_handler(t_trpt_opts trpt_opts,
}
descr = (char*)my_malloc(sizeof(char) * (strlen("Report Timing for L-")
+ strlen(my_itoa(L_wire))
+ strlen(my_itoa(L_wire)) + 1
+ strlen(direction) + 1
+ strlen(" wires") + 1));
sprintf(descr, "Report Timing for L-%d %s wires", L_wire, direction);