Completed the delete-user hook to remove any associated
[citadel.git] / libcitadel / lib / hash.c
index 937aa32e0922af063e998e9b08c345b6fc4c12ef..63c80e357b4ade63ed3c773319fa395f4dbb0dee 100644 (file)
@@ -686,3 +686,16 @@ void SortByPayload(HashList *Hash, CompareFunc SortBy)
  *      return strcmp (a, b);
  * }
  */
+
+
+/*
+ * Generic function to free a pointer.  This can be used as a callback with the
+ * hash table, even on systems where free() is defined as a macro or has had other
+ * horrible things done to it.
+ */
+void generic_free_handler(void *ptr) {
+       free(ptr);
+}
+
+
+