add malloc to the graph.