changeset 301dc56a97fb in /srv/hg/libpwquality details: http://hg.fedorahosted.org/hg/srv/hg/libpwquality?cmd=changeset;node=301dc56... summary: Deallocate previous string value on setting.
diffstat:
src/settings.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 5ddae9e5552f -r 301dc56a97fb src/settings.c --- a/src/settings.c Tue Dec 06 21:58:08 2011 +0100 +++ b/src/settings.c Wed Dec 07 16:03:00 2011 +0100 @@ -32,7 +32,6 @@ pwq->up_credit = PWQ_DEFAULT_UP_CREDIT; pwq->low_credit = PWQ_DEFAULT_LOW_CREDIT; pwq->oth_credit = PWQ_DEFAULT_OTH_CREDIT; - /* pwq->dict_path = NULL; unneeded */
return pwq; } @@ -272,6 +271,7 @@
switch(setting) { case PWQ_SETTING_DICT_PATH: + free(pwq->dict_path); pwq->dict_path = dup; break; default:
libpwquality-commits@lists.fedorahosted.org