[LogFS] Plug memory leak on error paths

Spotted by Dan Carpenter.
1 file changed