Date: Mon, 16 Jan 2006 00:16:20 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 89769 for review Message-ID: <200601160016.k0G0GKEs032239@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=89769 Change 89769 by rwatson@rwatson_peppercorn on 2006/01/16 00:15:42 In audit_write_failure(), free the subject token if we are aborting generation of the audit record. Found by: Coverity Prevent (tm) Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#11 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#11 (text+ko) ==== @@ -239,6 +239,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?200601160016.k0G0GKEs032239>