You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/vf_pullup: fix memleak on error
Fixes CID1108604 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -157,13 +157,17 @@ static PullupField *make_field_queue(PullupContext *s, int len) | ||||
|  | ||||
|     for (; len > 0; len--) { | ||||
|         f->next = av_mallocz(sizeof(*f->next)); | ||||
|         if (!f->next) | ||||
|         if (!f->next) { | ||||
|             free_field_queue(head, &f); | ||||
|             return NULL; | ||||
|         } | ||||
|  | ||||
|         f->next->prev = f; | ||||
|         f = f->next; | ||||
|         if (alloc_metrics(s, f) < 0) | ||||
|         if (alloc_metrics(s, f) < 0) { | ||||
|             free_field_queue(head, &f); | ||||
|             return NULL; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     f->next = head; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user