Close memory leak in external_passwd_quality

If the external password quality program returned a failure
message, the unparsed form of the principal name was never
freed.  Free it.
This commit is contained in:
Russ Allbery
2014-04-16 00:13:31 -07:00
committed by Nico Williams
parent 7b15a833a3
commit c3b3c2ec8e

View File

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