Add a call to subhook_free() in example snippet

This commit is contained in:
Zeex 2013-01-14 00:06:51 +07:00
parent 1268996b23
commit 21e76ee388

View File

@ -37,6 +37,9 @@ int main() {
/* Install our newly created hook so from now on any call to foo() /* Install our newly created hook so from now on any call to foo()
* will be redirected to my_foo(). */ * will be redirected to my_foo(). */
subhook_install(foo_hook); subhook_install(foo_hook);
/* Free the memory when you're done. */
subhook_free(foo_hook);
} }
``` ```