examples: out_lib: do not free memory
@@ -26,10 +26,6 @@ int my_stdout_json(void* data, size_t size)
printf("[%s]",__FUNCTION__);
printf("%s",(char*)data);
printf("\n");
-
- /* User has to release the buffer. */
- flb_free(data);
-
return 0;
}
@@ -38,10 +34,6 @@ int my_stdout_msgpack(void* data, size_t size)
printf("[%s]",__FUNCTION__);
msgpack_object_print(stdout, *(msgpack_object*)data);
printf("\n");
-
- /* User has to release the buffer. */
- flb_free(data);
-
return 0;
}
