From b29f04c05d1a59593763160ad9f12b1290a59c38 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Wed, 2 Jun 2021 04:43:28 +0200 Subject: [PATCH] process_pipeline: Drop unnecessary malloc --- src/process_pipeline.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/process_pipeline.c b/src/process_pipeline.c index 4ade340..0e4e6e9 100644 --- a/src/process_pipeline.c +++ b/src/process_pipeline.c @@ -435,11 +435,9 @@ process_image_for_capture(const uint8_t *image, int count) TIFFCheckpointDirectory(tif); printf("Writing frame to %s\n", fname); - unsigned char *pLine = (unsigned char *)malloc(mp_pixel_format_width_to_bytes(mode.pixel_format, mode.width)); for (int row = 0; row < mode.height; row++) { TIFFWriteScanline(tif, (void *) image + (row * mp_pixel_format_width_to_bytes(mode.pixel_format, mode.width)), row, 0); } - free(pLine); TIFFWriteDirectory(tif); // Add an EXIF block to the tiff