Fix potential descriptor leaks
The handle 'output' is created by calling function 'fopen' and lost when function is return after writing entry error.
Found by static analyzer Svace
The handle 'output' is created by calling function 'fopen' and lost when function is return after writing entry error.
Found by static analyzer Svace