From 21e76ee3888315c8c7573f022196ac43221c014e Mon Sep 17 00:00:00 2001 From: Zeex Date: Mon, 14 Jan 2013 00:06:51 +0700 Subject: [PATCH] Add a call to subhook_free() in example snippet --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d157568..c1fb07e 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,9 @@ int main() { /* Install our newly created hook so from now on any call to foo() * will be redirected to my_foo(). */ subhook_install(foo_hook); + + /* Free the memory when you're done. */ + subhook_free(foo_hook); } ```