Add free mem to graphs