net/ena: fix freeing memory using correct API