Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssh/dist CID 996110: Fix memory leak
details: https://anonhg.NetBSD.org/src/rev/6ea7380dcd28
branches: trunk
changeset: 337386:6ea7380dcd28
user: christos <christos%NetBSD.org@localhost>
date: Mon Apr 13 17:35:16 2015 +0000
description:
CID 996110: Fix memory leak
diffstat:
crypto/external/bsd/openssh/dist/sftp.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 01011d34c668 -r 6ea7380dcd28 crypto/external/bsd/openssh/dist/sftp.c
--- a/crypto/external/bsd/openssh/dist/sftp.c Mon Apr 13 17:25:52 2015 +0000
+++ b/crypto/external/bsd/openssh/dist/sftp.c Mon Apr 13 17:35:16 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sftp.c,v 1.14 2015/04/03 23:58:19 christos Exp $ */
+/* $NetBSD: sftp.c,v 1.15 2015/04/13 17:35:16 christos Exp $ */
/* $OpenBSD: sftp.c,v 1.170 2015/01/20 23:14:00 deraadt Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm%openbsd.org@localhost>
@@ -17,7 +17,7 @@
*/
#include "includes.h"
-__RCSID("$NetBSD: sftp.c,v 1.14 2015/04/03 23:58:19 christos Exp $");
+__RCSID("$NetBSD: sftp.c,v 1.15 2015/04/13 17:35:16 christos Exp $");
#include <sys/param.h> /* MIN MAX */
#include <sys/types.h>
#include <sys/ioctl.h>
@@ -732,6 +732,8 @@
fflag || global_fflag) == -1)
err = -1;
}
+ free(abs_dst);
+ abs_dst = NULL;
}
out:
Home |
Main Index |
Thread Index |
Old Index