file: uci_file_commit: fix memory leak