Skip to content

Commit

Permalink
upstream commit
Browse files Browse the repository at this point in the history
Back out 'plug memleak'.

Upstream-ID: 4faacdde136c24a961e24538de373660f869dbc0
  • Loading branch information
daztucker committed Jun 6, 2016
1 parent 82f24c3 commit 7ec4946
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compat.c
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down Expand Up @@ -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)
Expand All @@ -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;
}
Expand Down

0 comments on commit 7ec4946

Please sign in to comment.