2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 22:35:35 +00:00

Fix small memory leak in the parser.

This commit is contained in:
Steve Beattie
2006-12-19 17:44:53 +00:00
parent 90c9b5c0cd
commit 0e969aa582

View File

@@ -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);