main: avoid memory leak