]> git.gag.com Git - fw/openocd/blobdiff - src/openocd.c
log: fix memory leak when log to file is enabled
[fw/openocd] / src / openocd.c
index 0292ba445b28f89559e565fe276673c3b9273f74..3c96d321456a053d2e6eb35457c64e68061e9fab 100644 (file)
@@ -437,6 +437,8 @@ int openocd_main(int argc, char *argv[])
        rtt_exit();
        free_config();
 
+       log_exit();
+
        if (ret == ERROR_FAIL)
                return EXIT_FAILURE;
        else if (ret != ERROR_OK)