diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-09 19:36:18 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-09 19:36:18 +0000 |
commit | 4edce31b89a56272f3f73f0b7adb85e497cadaea (patch) | |
tree | f6603b963989cf249d8e3d56bda18873d5b1ae4a /bin/systrace/intercept-translate.c | |
parent | 2bf61905cc5d921791da2b5a5b7be26c74c26b1a (diff) |
Remove NULL-check before free(). ok tb@
Diffstat (limited to 'bin/systrace/intercept-translate.c')
-rw-r--r-- | bin/systrace/intercept-translate.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/systrace/intercept-translate.c b/bin/systrace/intercept-translate.c index 32d40569b49..60c207cec5c 100644 --- a/bin/systrace/intercept-translate.c +++ b/bin/systrace/intercept-translate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intercept-translate.c,v 1.17 2014/08/10 04:57:33 guenther Exp $ */ +/* $OpenBSD: intercept-translate.c,v 1.18 2015/12/09 19:36:17 mmcc Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -56,10 +56,8 @@ static int ic_print_sockaddr(char *, size_t, struct intercept_translate *); static void ic_trans_free(struct intercept_translate *trans) { - if (trans->trans_data) - free(trans->trans_data); - if (trans->trans_print) - free(trans->trans_print); + free(trans->trans_data); + free(trans->trans_print); trans->trans_valid = 0; trans->trans_data = NULL; trans->trans_print = NULL; |