summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-05-21 22:27:09 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-05-21 22:27:09 +0200
commit4169af73493781329bb0a65c738babfd9d04cc35 (patch)
tree7304e79ec15099823f1876e26ccbeb9c2b5752d6
parent133fff31878c525287e4d663b075ce3849ceb499 (diff)
curvetun: use free instead of xfree
Only use xfree where it makes sense, here not really. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
-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;
}