- /* @FIXME: Put this in a better place, and free() it too. */
- if(lz4_state == NULL) {
- lz4_state = malloc(LZ4_sizeofState());
- }
-
- if(lz4_state == NULL) {
- logger(DEBUG_ALWAYS, LOG_ERR, "Failed to allocate lz4_state, error: %i", errno);
- return 0;
- }
-
- return LZ4_compress_fast_extState(lz4_state, source, dest, len, MAXSIZE, 0);
+ /* @FIXME: Put this in a better place, and free() it too. */
+ if(lz4_state == NULL) {
+ lz4_state = malloc(LZ4_sizeofState());
+ }