Don't pass memory node name to AddMemList, as it must remain in memory after program exit. It's better to avoid this.