Module Name: src Committed By: christos Date: Mon Apr 13 17:35:16 UTC 2015
Modified Files: src/crypto/external/bsd/openssh/dist: sftp.c Log Message: CID 996110: Fix memory leak To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/crypto/external/bsd/openssh/dist/sftp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/openssh/dist/sftp.c diff -u src/crypto/external/bsd/openssh/dist/sftp.c:1.14 src/crypto/external/bsd/openssh/dist/sftp.c:1.15 --- src/crypto/external/bsd/openssh/dist/sftp.c:1.14 Fri Apr 3 19:58:19 2015 +++ src/crypto/external/bsd/openssh/dist/sftp.c Mon Apr 13 13:35:16 2015 @@ -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 <d...@openbsd.org> @@ -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 @@ process_put(struct sftp_conn *conn, char fflag || global_fflag) == -1) err = -1; } + free(abs_dst); + abs_dst = NULL; } out: