aboutsummaryrefslogtreecommitdiff
path: root/libftpconn/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'libftpconn/unix.c')
-rw-r--r--libftpconn/unix.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libftpconn/unix.c b/libftpconn/unix.c
index 882fee8f..2804e7c4 100644
--- a/libftpconn/unix.c
+++ b/libftpconn/unix.c
@@ -252,14 +252,11 @@ ftp_conn_unix_start_get_stats (struct ftp_conn *conn,
out:
- if (req)
- free (req);
+ free (req);
if (err)
{
- if (s)
- free (s);
- if (searched_name)
- free (searched_name);
+ free (s);
+ free (searched_name);
}
else
{