[ASAN] lib: Squash various leaks in library and commandline
The pull one is the most likely to affect users. Otherwise mostly just cleaning up `-fsanitize=address`. Closes: #587 Approved by: jlebon
This commit is contained in:
1 parent
eb7ba645af
commit
49b8a72622
12 files changed
+30
-13
No files matched your search
@@ -258,7 +258,7 @@ initable_init (GInitable *initable,
|
||||
g_autoptr(GFileInputStream) filein = NULL;
|
||||
g_autoptr(GDataInputStream) datain = NULL;
|
||||
gboolean enabled = FALSE;
|
||||
char *policytype = NULL;
|
||||
g_autofree char *policytype = NULL;
|
||||
const char *selinux_prefix = "SELINUX=";
|
||||
const char *selinuxtype_prefix = "SELINUXTYPE=";
|
||||
|
||||
@@ -352,7 +352,7 @@ initable_init (GInitable *initable,
|
||||
goto out;
|
||||
}
|
||||
|
||||
self->selinux_policy_name = g_strdup (policytype);
|
||||
self->selinux_policy_name = g_steal_pointer (&policytype);
|
||||
self->selinux_policy_root = g_object_ref (etc_selinux_dir);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user