Skip to content

Commit a2a8732

Browse files
authored
Merge pull request #275 from AtariDreams/emergency
Set command_info to NULL once it is freed
2 parents 676066e + 0bb41ed commit a2a8732

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugins/sudoers/policy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@ sudoers_policy_store_result(bool accepted, char *argv[], char *envp[],
10541054
while (info_len--)
10551055
free(command_info[info_len]);
10561056
free(command_info);
1057+
command_info = NULL;
10571058
debug_return_bool(false);
10581059
}
10591060

0 commit comments

Comments
 (0)