The storage of variables with automatic storage duration is deallocated automatically when the variable goes out of scope. This is handled by the language implementation.
In fact, there is no need and no way to manually deallocate memory of any variable. Only dynamic memory can be deallocated manually.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…