aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortony <tsyrogit@users.noreply.github.com>2016-10-24 18:09:33 +0100
committertony <tsyrogit@users.noreply.github.com>2016-10-24 18:09:33 +0100
commit7e3630a0ad96e472c983e4623e2787225d8e5312 (patch)
tree4933ed9db22fbbd730213fa48f2d3bbdea8a424b
parent13c1acc8cebc4aed81066e9f4808456b42f56949 (diff)
downloadzxcvbn-c-7e3630a0ad96e472c983e4623e2787225d8e5312.tar.gz
Fix memory leak
-rw-r--r--zxcvbn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zxcvbn.c b/zxcvbn.c
index 71334a4..f9678c5 100644
--- a/zxcvbn.c
+++ b/zxcvbn.c
@@ -1659,6 +1659,7 @@ double ZxcvbnMatch(const char *Pwd, const char *UserDict[], ZxcMatch_t **Info)
}
}
}
+ FreeFn(RevPwd);
/* End node has infinite distance/entropy, start node has 0 distance */
Nodes[i].Dist = DBL_MAX;
Nodes[0].Dist = 0.0;