698cd1
diff -up ./lib/eventlog/eventlog.c.covscan ./lib/eventlog/eventlog.c
698cd1
--- ./lib/eventlog/eventlog.c.covscan	2021-08-26 11:06:35.068915415 +0200
698cd1
+++ ./lib/eventlog/eventlog.c	2021-08-26 11:13:32.432472325 +0200
698cd1
@@ -1075,10 +1075,13 @@ do_logfile_sudo(const char *logline, con
698cd1
     if (ferror(fp)) {
698cd1
 	sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_LINENO|SUDO_DEBUG_ERRNO,
698cd1
 	    "unable to write log file %s", logfile);
698cd1
-	goto done;
698cd1
+	goto ddone;
698cd1
     }
698cd1
     ret = true;
698cd1
 
698cd1
+ddone:
698cd1
+    (void)free(full_line);
698cd1
+
698cd1
 done:
698cd1
     (void)sudo_lock_file(fileno(fp), SUDO_UNLOCK);
698cd1
     evl_conf.close_log(EVLOG_FILE, fp);
698cd1
diff -up ./logsrvd/logsrvd.c.covscan ./logsrvd/logsrvd.c
698cd1
diff -up ./plugins/audit_json/audit_json.c.covscan ./plugins/audit_json/audit_json.c
698cd1
diff -up ./plugins/sudoers/ldap.c.covscan ./plugins/sudoers/ldap.c
698cd1
--- ./plugins/sudoers/ldap.c.covscan	2021-08-26 15:46:11.614179451 +0200
698cd1
+++ ./plugins/sudoers/ldap.c	2021-08-26 15:51:40.871812534 +0200
698cd1
@@ -443,6 +443,8 @@ sudo_ldap_parse_options(LDAP *ld, LDAPMe
698cd1
 	goto done;
698cd1
     }
698cd1
 
698cd1
+    free(cp);
698cd1
+
698cd1
     /* Walk through options, appending to defs. */
698cd1
     for (p = bv; *p != NULL; p++) {
698cd1
 	char *var, *val;
698cd1
diff -up ./plugins/sudoers/logging.c.covscan ./plugins/sudoers/logging.c
698cd1
diff -up ./plugins/sudoers/rcstr.c.covscan ./plugins/sudoers/rcstr.c
698cd1
diff -up ./src/utmp.c.covscan ./src/utmp.c