Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2006 00:15:19 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 89768 for review
Message-ID:  <200601160015.k0G0FJ7h032146@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=89768

Change 89768 by rwatson@rwatson_peppercorn on 2006/01/16 00:14:19

	When aborting audit_write_failure_self() due to trying
	circumstances, make sure to release the subject token rather
	than leaking it.
	
	Found by:	Coverity Prevent (tm)

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#10 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#10 (text+ko) ====

@@ -265,6 +265,7 @@
 	}
 	/* tokenize and save the error message */
 	if ((errtok = au_to_text(errmsg)) == NULL) {
+		au_free_token(subject);
 		syslog(LOG_ERR, "%s: au_to_text() failed", func);
 		return (kAUMakeTextTokErr);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601160015.k0G0FJ7h032146>