X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=libcitadel%2Flib%2Fhash.c;h=d6c5b474535f18e841bbdabfbb12786d04da2314;hb=dabb2c4bc819a3ff1e99574ceee919255abe754a;hp=9ab2aa6e3db5440ef412c170dbb12c676edc46a7;hpb=2c97ce2f2e8dda0efc924dc47c74c9444e017002;p=citadel.git diff --git a/libcitadel/lib/hash.c b/libcitadel/lib/hash.c index 9ab2aa6e3..d6c5b4745 100644 --- a/libcitadel/lib/hash.c +++ b/libcitadel/lib/hash.c @@ -195,6 +195,15 @@ static void DeleteHashPayload (Payload *Data) free(Data->Data); } +/** + * \brief Destructor for nested hashes + */ +void HDeleteHash(void *vHash) +{ + HashList *FreeMe = (HashList*)vHash; + DeleteHash(&FreeMe); +} + /** * \brief destroy a hashlist and all of its members * Crashing? do 'print *FreeMe->LookupTable[i]'