Fix memory leak in utils.c

This commit is contained in:
Darshit Shah 2014-11-19 21:55:30 +05:30
parent 7a7a241e5b
commit 1ce1a40f94
2 changed files with 10 additions and 4 deletions

View File

@ -1,12 +1,17 @@
2014-11-19 Darshit Shah <darnir@gmail.com>
* utils.c (compile_posix_regex): Fix memory leak due to unfreed regex
pointer
2014-11-19 Tim Ruehsen <tim.ruehsen@gmx.de>
* utils.c (random_float, random_number): Use random() and
srandom() if available.
Reported-by: Coverity scanner
2014-11-19 Tim Ruehsen <tim.ruehsen@gmx.de>
* 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 <tim.ruehsen@gmx.de>
* 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 <tim.ruehsen@gmx.de>

View File

@ -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;
}