~~sage does not ~~How to free ~~my ~~the memory used to test an equality in symbolic ~~ring variable in a while/for loop?~~ring?

Hello,

I use sage ~~7.1. ~~7.1 on a debian computer. I have a problem of memory when I ~~am using a variable with a symbolic expression ~~test an equality in ~~a while loop. ~~SR. It seems that sage does not free the memory used at the end of ~~the loop. ~~test. For example with the programm:

~~while true:
v1 ~~a = sqrt(2)
while(true):
if ~~(v1 ~~(a == 0):
~~v1 = 0~~break

The memory used by sage grows and ~~it finishes to overflow. ~~my computer crashes if I wait too long. There is no problem if I replace sqrt(2) by ~~1 (or by a matrix with interger coefficient...)~~1...

Is there something I am doing wrong?
Antoine