diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c index 3ca3aedd21118d4bafafc03168ecdbee07f02161..00ed39eb266014c2bece1d10c8e60a6998d459db 100644 --- a/docs/examples/getinmemory.c +++ b/docs/examples/getinmemory.c @@ -14,6 +14,8 @@ */ #include +#include +#include #include #include @@ -93,5 +95,8 @@ int main(int argc, char **argv) * you're done with it, you should free() it as a nice application. */ + if(chunk.memory) + free(chunk.memory); + return 0; }