mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
parent
398f0790de
commit
61b1501f48
1 changed files with 3 additions and 3 deletions
|
@ -17,9 +17,9 @@
|
||||||
* free function and then deleting by language mechanisms doesn't cause a
|
* free function and then deleting by language mechanisms doesn't cause a
|
||||||
* double-free.
|
* double-free.
|
||||||
*
|
*
|
||||||
* Instead, we need manually extend the struct with a C++-like destructor.
|
* Additionally, we can manually extend the struct with a C++-like
|
||||||
* This ensures that the record struct is free when the high-level object
|
* destructor. This ensures that the record struct is freed
|
||||||
* goes out of scope.
|
* automatically when the high-level object goes out of scope.
|
||||||
*/
|
*/
|
||||||
%extend aa_log_record {
|
%extend aa_log_record {
|
||||||
~aa_log_record() {
|
~aa_log_record() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue