MCPcopy Create free account
hub / github.com/F-Stack/f-stack / quicklistBookmarksClear

Function quicklistBookmarksClear

app/redis-6.2.6/src/quicklist.c:1521–1526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1519}
1520
1521void quicklistBookmarksClear(quicklist *ql) {
1522 while (ql->bookmark_count)
1523 zfree(ql->bookmarks[--ql->bookmark_count].name);
1524 /* NOTE: We do not shrink (realloc) the quick list. main use case for this
1525 * function is just before releasing the allocation. */
1526}
1527
1528/* The rest of this file is test cases and test helpers. */
1529#ifdef REDIS_TEST

Callers 2

quicklistReleaseFunction · 0.85
quicklistTestFunction · 0.85

Calls 1

zfreeFunction · 0.70

Tested by

no test coverage detected