diff --git a/src/ChangeLog b/src/ChangeLog index 20844f7c..ef6ea7e5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,12 +1,17 @@ +2014-11-19 Darshit Shah + + * utils.c (compile_posix_regex): Fix memory leak due to unfreed regex + pointer + 2014-11-19 Tim Ruehsen - + * utils.c (random_float, random_number): Use random() and srandom() if available. Reported-by: Coverity scanner 2014-11-19 Tim Ruehsen - + * ftp-basic.c (ftp_epsv): Fix loop check Reported-by: Coverity scanner @@ -23,9 +28,9 @@ * openssl.c (ssl_check_certificate): Fix memory leak 2014-11-19 Tim Ruehsen - + * gnutls.c (ssl_init): Report load failure of cert files from - cert directory only with --debug. Fixes #41331. + cert directory only with --debug. Fixes #41331. 2014-11-18 Tim Ruehsen diff --git a/src/utils.c b/src/utils.c index f40480f6..d82f15c8 100644 --- a/src/utils.c +++ b/src/utils.c @@ -2310,6 +2310,7 @@ compile_posix_regex (const char *str) fprintf (stderr, _("Invalid regular expression %s, %s\n"), quote (str), errbuf); xfree (errbuf); + xfree (regex); return NULL; }