diff options
author | 2015-12-23 20:29:57 +0000 | |
---|---|---|
committer | 2015-12-23 20:29:57 +0000 | |
commit | 23cba96e07fd3f76634ae8e06e1a9db0f06fab25 (patch) | |
tree | e3590aad7e6b463bf0d6a6effbc9149f196c49bf | |
parent | remove a few NULL-checks before free() (diff) | |
download | wireguard-openbsd-23cba96e07fd3f76634ae8e06e1a9db0f06fab25.tar.xz wireguard-openbsd-23cba96e07fd3f76634ae8e06e1a9db0f06fab25.zip |
remove NULL-checks before free()
-rw-r--r-- | lib/libsndio/aucat.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libsndio/aucat.c b/lib/libsndio/aucat.c index 074ab211635..8b488430ddc 100644 --- a/lib/libsndio/aucat.c +++ b/lib/libsndio/aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aucat.c,v 1.69 2015/11/22 12:01:23 ratchov Exp $ */ +/* $OpenBSD: aucat.c,v 1.70 2015/12/23 20:29:57 mmcc Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -288,10 +288,8 @@ bad_gen: unlink(tmp); } done: - if (tmp) - free(tmp); - if (path) - free(path); + free(tmp); + free(path); return 1; } |