PERFORCE change 85612 for review
Robert Watson
rwatson at FreeBSD.org
Thu Oct 20 19:30:33 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=85612
Change 85612 by rwatson at rwatson_zoo on 2005/10/20 19:29:41
When freeing a BSM-converted audit record, free the record and its
data pointer, not a NULL token pointer. Otherwise we leak BSM
records like mad.
Affected files ...
.. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#28 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#28 (text+ko) ====
@@ -150,7 +150,8 @@
rec->used = 0;
rec->len = 0;
- free(tok, M_AUDITBSM);
+ free(rec->data, M_AUDITBSM);
+ free(rec, M_AUDITBSM);
}
/*
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list