2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Free str after using it in the version method. Use sudo_conv, not

io_conv since we don't have the IO conversation function pointer
in the I/O version method anymore now that io_open is delayed.
This commit is contained in:
Todd C. Miller
2010-04-04 08:40:23 -04:00
parent 8ca9287405
commit 3242c1091d
2 changed files with 3 additions and 1 deletions

View File

@@ -1110,6 +1110,7 @@ sudoers_policy_version(int verbose)
msg.msg = str;
memset(&repl, 0, sizeof(repl));
sudo_conv(1, &msg, &repl);
free(str);
#ifdef notyet
if (verbose) {