summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/free/f_addr.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/krb5/free/f_addr.c b/src/lib/krb5/free/f_addr.c
new file mode 100644
index 000000000..8cb2bfc65
--- /dev/null
+++ b/src/lib/krb5/free/f_addr.c
@@ -0,0 +1,30 @@
+/*
+ * $Source$
+ * $Author$
+ *
+ * Copyright 1990 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/copyright.h>.
+ *
+ * krb5_free_addr()
+ */
+
+#if !defined(lint) && !defined(SABER)
+static char rcsid_f_addr_c [] =
+"$Id$";
+#endif /* !lint & !SABER */
+
+#include <krb5/copyright.h>
+#include <krb5/krb5.h>
+#include <krb5/ext-proto.h>
+
+void
+krb5_free_addr(val)
+krb5_address *val;
+{
+ if (val->contents)
+ xfree(val->contents);
+ xfree(val);
+ return;
+}