static analysis revealed memory leak. plugged