diff options
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: match.c,v 1.34 2017/02/03 23:01:19 djm Exp $ */ | 1 | /* $OpenBSD: match.c,v 1.35 2017/02/15 23:38:31 jsg Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -297,8 +297,11 @@ match_filter_list(const char *proposal, const char *filter) | |||
297 | char *orig_prop = strdup(proposal); | 297 | char *orig_prop = strdup(proposal); |
298 | char *cp, *tmp; | 298 | char *cp, *tmp; |
299 | 299 | ||
300 | if (fix_prop == NULL || orig_prop == NULL) | 300 | if (fix_prop == NULL || orig_prop == NULL) { |
301 | free(orig_prop); | ||
302 | free(fix_prop); | ||
301 | return NULL; | 303 | return NULL; |
304 | } | ||
302 | 305 | ||
303 | tmp = orig_prop; | 306 | tmp = orig_prop; |
304 | *fix_prop = '\0'; | 307 | *fix_prop = '\0'; |