mirror of
https://github.com/wavestone-cdt/EDRSandblast.git
synced 2026-06-11 01:41:20 +00:00
D3FC0N 30 release: Obj callbacks, firewalling, symbols w/ internet, and more
Co-authored-by: Maxime Meignan <maxime.meignan@wavestone.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include "ListUtils.h"
|
||||
|
||||
VOID freeLinkedList(PVOID head) {
|
||||
PLINKED_LIST previousNode = NULL;
|
||||
PLINKED_LIST currentNode = (PLINKED_LIST)head;
|
||||
|
||||
while (currentNode) {
|
||||
previousNode = currentNode;
|
||||
currentNode = currentNode->next;
|
||||
free(previousNode);
|
||||
previousNode = NULL;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user