summaryrefslogtreecommitdiff
path: root/curvetun.c
diff options
context:
space:
mode:
Diffstat (limited to 'curvetun.c')
-rw-r--r--curvetun.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/curvetun.c b/curvetun.c
index eeb4de1..e888933 100644
--- a/curvetun.c
+++ b/curvetun.c
@@ -679,14 +679,10 @@ int main(int argc, char **argv)
die();
}
- if (dev)
- xfree(dev);
- if (stun)
- xfree(stun);
- if (port)
- xfree(port);
- if (alias)
- xfree(alias);
+ free(dev);
+ free(stun);
+ free(port);
+ free(alias);
return ret;
}