From fe8522bbc11dcb0bb2fa2d7bc3b686c57048062d Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: May 21 2008 13:51:06 +0000 Subject: - fix a small memory leak (#397011) --- diff --git a/vsftpd-2.0.4-filter.patch b/vsftpd-2.0.4-filter.patch index 18b4ef1..d536f8c 100644 --- a/vsftpd-2.0.4-filter.patch +++ b/vsftpd-2.0.4-filter.patch @@ -54,7 +54,7 @@ +void +str_basename (struct mystr* d_str, const struct mystr* path) +{ -+ struct mystr tmp = INIT_MYSTR; ++ static struct mystr tmp; + + str_copy (&tmp, path); + str_split_char_reverse(&tmp, d_str, '/'); diff --git a/vsftpd.spec b/vsftpd.spec index 43d36ef..1597448 100644 --- a/vsftpd.spec +++ b/vsftpd.spec @@ -3,7 +3,7 @@ Summary: Very Secure Ftp Daemon Name: vsftpd Version: 2.0.6 -Release: 3%{?dist} +Release: 4%{?dist} License: GPL Group: System Environment/Daemons URL: http://vsftpd.beasts.org/ @@ -160,6 +160,9 @@ fi %{_var}/ftp %changelog +* Wed May 21 2008 Martin Nagy - 2.0.6-4 +- fix a small memory leak (#397011) + * Mon Mar 31 2008 Martin Nagy - 2.0.6-3 - set option listen to default to YES