Skip to content

Commit 83790bb

Browse files
authored
Update power_util.cpp
1 parent 5740a83 commit 83790bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vpr/src/power/power_util.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,9 @@ static void init_mux_arch_default(t_mux_arch* mux_arch, int levels, int num_inpu
405405
* Allocates a builds a multiplexer graph with given # inputs and levels
406406
*/
407407
static t_mux_node* alloc_and_load_mux_graph(int num_inputs, int levels) {
408-
t_mux_node* node = new t_mux_node;
408+
t_mux_node* node;
409+
410+
node = (t_mux_node*)vtr::malloc(sizeof(t_mux_node));
409411
alloc_and_load_mux_graph_recursive(node, num_inputs, levels - 1, 0);
410412

411413
return node;

0 commit comments

Comments
 (0)