mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
Fix small memory leak in the parser.
This commit is contained in:
@@ -647,6 +647,9 @@ int sd_serialize_codomain(int option, struct codomain *cod)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (option != OPTION_STDOUT)
|
||||
free(filename);
|
||||
|
||||
if (option == OPTION_REMOVE) {
|
||||
size = strlen(cod->name) + 1;
|
||||
wsize = write(fd, cod->name, size);
|
||||
|
Reference in New Issue
Block a user