peace-maker / DHooks2

Dynamic detouring support for the DHooks 2 SourceMod extension
https://forums.alliedmods.net/showthread.php?p=2588686#post2588686
67 stars 11 forks source link

Fix memory leaks #14

Closed maxime1907 closed 3 years ago

maxime1907 commented 4 years ago

This reverts commit 67b3b54ae1595db6c8f270dec1c1e6702d3fe9d5

This fixes multiple memory leaks that result in a really long parsing of the linked list, and gives me for example 30 seconds before a round loads after an uptime of 6000 (after a server restart, it usually takes 1 second to load). Look at MapEntity_ParseAllEntities in the vprof.txt for an example.

peace-maker commented 4 years ago

See https://github.com/Drifter321/DHooks2/issues/2

It's feels like a bug in sourcehook that it's failing to end the context in a generated hook.

peace-maker commented 3 years ago

This was fixed in 314f9264e88937145a84001d9877015bd113278c