diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2016-05-24 04:31:57 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-06-06 03:25:37 +0200 |
commit | 7ec4946fb686813eb5f8c57397e465f5485159f4 (patch) | |
tree | 28b76b0108d669784f386c0aef4d7cd532f7457c | |
parent | upstream commit (diff) | |
download | openssh-7ec4946fb686813eb5f8c57397e465f5485159f4.tar.xz openssh-7ec4946fb686813eb5f8c57397e465f5485159f4.zip |
upstream commit
Back out 'plug memleak'.
Upstream-ID: 4faacdde136c24a961e24538de373660f869dbc0
-rw-r--r-- | compat.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: compat.c,v 1.98 2016/05/23 00:17:27 dtucker Exp $ */ +/* $OpenBSD: compat.c,v 1.99 2016/05/24 02:31:57 dtucker Exp $ */ /* * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. * @@ -252,7 +252,7 @@ proto_spec(const char *spec) /* * Filters a proposal string, excluding any algorithm matching the 'filter' - * pattern list. Returns a new string and frees the original proposal. + * pattern list. */ static char * filter_proposal(char *proposal, const char *filter) @@ -275,7 +275,6 @@ filter_proposal(char *proposal, const char *filter) fix_prop = xstrdup((char *)buffer_ptr(&b)); buffer_free(&b); free(orig_prop); - free(proposal); return fix_prop; } |