[ASAN] sysroot: Squash a leak in lockfile acquisition
I installed `parallel` in my dev container, which got me the sysroot locking tests, which caught this leak when built with ASAN. Closes: #623 Approved by: jlebon
This commit is contained in:
1 parent
7f2830cb4e
commit
58e318d678
1 file changed
+2
-2
@@ -1323,7 +1323,7 @@ ostree_sysroot_try_lock (OstreeSysroot *self,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
GError *local_error = NULL;
|
g_autoptr(GError) local_error = NULL;
|
||||||
|
|
||||||
if (!ensure_sysroot_fd (self, error))
|
if (!ensure_sysroot_fd (self, error))
|
||||||
goto out;
|
goto out;
|
||||||
@@ -1338,7 +1338,7 @@ ostree_sysroot_try_lock (OstreeSysroot *self,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_propagate_error (error, local_error);
|
g_propagate_error (error, g_steal_pointer (&local_error));
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user