Skip to content

Commit

Permalink
examples: release the buffer at user callback.
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro YAMASHITA <[email protected]>
  • Loading branch information
nokute78 committed May 23, 2016
1 parent 221b154 commit 0760e9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/out_lib/out_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ int my_stdout(void* data, size_t size)
printf("[%s]",__FUNCTION__);
msgpack_object_print(stdout, *(msgpack_object*)data);
printf("\n");


/* User has to release the buffer. */
free(data);

return 0;
}

Expand Down

0 comments on commit 0760e9c

Please sign in to comment.