Fix memory leak (Anatol Belski)