diff --git a/SCinter.c b/SCinter.c index 1d5cd1a4..87695dc8 100644 --- a/SCinter.c +++ b/SCinter.c @@ -1035,7 +1035,7 @@ static void printList(SConnection * pCon, int listID) static void freeList(int listID) { do { - LLDstringDelete(listID); + LLDdeleteString(listID); } while (0 != LLDnodePtr2First(listID)); LLDdelete(listID); } diff --git a/lld_str.h b/lld_str.h index 61280471..a3274759 100644 --- a/lld_str.h +++ b/lld_str.h @@ -21,6 +21,8 @@ #define LLDstringCreate() LLDblobCreate() +#define LLDdeleteString(l) LLDdeleteBlob(l) + #define LLDstringInsert(l,s) LLDblobInsert( l, s, strlen( s ) +1 ) #define LLDstringAdd(l,s) LLDblobAdd( l, s, strlen( s ) +1 )