Skip to content

Commit

Permalink
Close memory leak in external_passwd_quality
Browse files Browse the repository at this point in the history
If the external password quality program returned a failure
message, the unparsed form of the principal name was never
freed.  Free it.
  • Loading branch information
rra authored and nicowilliams committed Sep 25, 2017
1 parent 7b15a83 commit c3b3c2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/kadm5/password_quality.c
Expand Up @@ -199,6 +199,7 @@ external_passwd_quality (krb5_context context,
fclose(out);
fclose(error);
wait_for_process(child);
free(p);
return 1;
}
reply[strcspn(reply, "\n")] = '\0';
Expand Down

0 comments on commit c3b3c2e

Please sign in to comment.