tree-wide: Use autoptr for OstreeKernelArgs

Much nicer looking.  Prep for more cleanup from
https://github.com/projectatomic/rpm-ostree/pull/1013

Closes: #1302
Approved by: peterbaouoft
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2017-10-25 01:48:56 +00:00
1 parent 63ce86d597
commit d76840d0c1
7 files changed
+14 -20

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ append_system_uenv (OstreeBootloaderUboot *self,
GError **error)
{
glnx_autofd int uenv_fd = -1;
__attribute__((cleanup(_ostree_kernel_args_cleanup))) OstreeKernelArgs *kargs = NULL;
g_autoptr(OstreeKernelArgs) kargs = NULL;
const char *uenv_path = NULL;
const char *ostree_arg = NULL;