]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: free path variables before exiting
authorAlfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>
Thu, 23 Sep 2021 06:41:05 +0000 (08:41 +0200)
committerRay Strode <halfline@gmail.com>
Mon, 27 Sep 2021 10:03:53 +0000 (10:03 +0000)
Free path variables before exiting so the code is more asan/valgrind
friendly.

src/main.c

index 9134f264fbb3b512223209f8944d86d0439f5506..eafd94bec6440e6c1949f9f9f6698668d2ac78d1 100644 (file)
@@ -2357,6 +2357,10 @@ main (int    argc,
 
         ply_free_error_log ();
 
+        free (state.override_splash_path);
+        free (state.system_default_splash_path);
+        free (state.distribution_default_splash_path);
+
         return exit_code;
 }
 /* vim: set ts=4 ts=4 sw=4 expandtab autoindent cindent cino={.5s,(0: */