diff options
author | Alfonso Sánchez-Beato <alfonso.sanchez-beato@canonical.com> | 2021-09-23 08:41:05 +0200 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2021-09-27 10:03:53 +0000 |
commit | 4bf060c5dd055bb954e8e1ad262da56694316e88 (patch) | |
tree | 1ad58b58ba68ff3a1f8574e741ea27e11ed02dc2 | |
parent | dae14773bd3b9b86cdaeaab684191238a5eff21e (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: */ |