summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com>2021-09-23 08:41:05 +0200
committerRay Strode <halfline@gmail.com>2021-09-27 10:03:53 +0000
commit4bf060c5dd055bb954e8e1ad262da56694316e88 (patch)
tree1ad58b58ba68ff3a1f8574e741ea27e11ed02dc2
parentdae14773bd3b9b86cdaeaab684191238a5eff21e (diff)
main: free path variables before exiting
Free path variables before exiting so the code is more asan/valgrind friendly.
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 9134f264..eafd94be 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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: */