| |
@@ -243,6 +243,7 @@
|
| |
if ((enc = (*pwsp->pws_enc)(decoded)) == NULL) {
|
| |
perror(name);
|
| |
rc = 1;
|
| |
+ slapi_ch_free_string(&decoded);
|
| |
goto out;
|
| |
}
|
| |
|
| |
@@ -256,12 +257,12 @@
|
| |
printf("%s: password does not match.\n", name);
|
| |
}
|
| |
}
|
| |
+ slapi_ch_free_string(&decoded);
|
| |
}
|
| |
|
| |
out:
|
| |
|
| |
free_pw_scheme(pwsp);
|
| |
- slapi_ch_free_string(&decoded);
|
| |
|
| |
plugin_closeall(1 /* Close Backends */, 1 /* Close Globals */);
|
| |
|
| |
Bug description: When we have multiple inputs
we leak 1 to N strings allocate.
Fix description: We free only one string in the end of main()
but if we have a multiple string inputs we should free
all of them during the for loop.
https://pagure.io/389-ds-base/issue/49511
Reviewed by: ?