[ASAN] set-origin: Squash a leak
Just a minor leak in the commandline. Closes: #598 Approved by: jlebon
This commit is contained in:
1 parent
161193966c
commit
667b734c79
1 file changed
+3
-1
@@ -50,7 +50,7 @@ ot_admin_builtin_set_origin (int argc, char **argv, GCancellable *cancellable, G
|
|||||||
const char *branch = NULL;
|
const char *branch = NULL;
|
||||||
glnx_unref_object OstreeRepo *repo = NULL;
|
glnx_unref_object OstreeRepo *repo = NULL;
|
||||||
glnx_unref_object OstreeSysroot *sysroot = NULL;
|
glnx_unref_object OstreeSysroot *sysroot = NULL;
|
||||||
OstreeDeployment *target_deployment = NULL;
|
glnx_unref_object OstreeDeployment *target_deployment = NULL;
|
||||||
|
|
||||||
context = g_option_context_new ("REMOTENAME URL [BRANCH]");
|
context = g_option_context_new ("REMOTENAME URL [BRANCH]");
|
||||||
|
|
||||||
@@ -85,6 +85,8 @@ ot_admin_builtin_set_origin (int argc, char **argv, GCancellable *cancellable, G
|
|||||||
"Not currently booted into an OSTree system");
|
"Not currently booted into an OSTree system");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
/* To match the below */
|
||||||
|
target_deployment = g_object_ref (target_deployment);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user