aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts_site_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcontacts_site_destroy.c')
-rw-r--r--libcontacts_site_destroy.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libcontacts_site_destroy.c b/libcontacts_site_destroy.c
new file mode 100644
index 0000000..f1cef31
--- /dev/null
+++ b/libcontacts_site_destroy.c
@@ -0,0 +1,11 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+
+void
+libcontacts_site_destroy(struct libcontacts_site *this)
+{
+ free(this->context);
+ free(this->address);
+ DESTROY_ALL(this->unrecognised_data, free);
+}