Fix swupd_lock file descriptor leaking

The swupd_lock is not properly closed
when the work is done with bundle-list
subcommand.
This commit is contained in:
Jaime A. Garcia
2017-02-07 13:41:04 -08:00
committed by tmarcu
parent 339d0bba95
commit d0918037ac
+1
View File
@@ -176,6 +176,7 @@ int bundle_list_main(int argc, char **argv)
printf("Current OS version: %d\n", current_version);
list_free_list(list_bundles);
v_lockfile(lock_fd);
return ret;
}