Update memory heap variable