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:

committed by
Nico Williams

parent
7b15a833a3
commit
c3b3c2ec8e
@@ -199,6 +199,7 @@ external_passwd_quality (krb5_context context,
|
|||||||
fclose(out);
|
fclose(out);
|
||||||
fclose(error);
|
fclose(error);
|
||||||
wait_for_process(child);
|
wait_for_process(child);
|
||||||
|
free(p);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
reply[strcspn(reply, "\n")] = '\0';
|
reply[strcspn(reply, "\n")] = '\0';
|
||||||
|
Reference in New Issue
Block a user