You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avformat/rtpproto: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -510,10 +510,10 @@ static int rtp_close(URLContext *h) | ||||
|     int i; | ||||
|  | ||||
|     for (i = 0; i < s->nb_ssm_include_addrs; i++) | ||||
|         av_free(s->ssm_include_addrs[i]); | ||||
|         av_freep(&s->ssm_include_addrs[i]); | ||||
|     av_freep(&s->ssm_include_addrs); | ||||
|     for (i = 0; i < s->nb_ssm_exclude_addrs; i++) | ||||
|         av_free(s->ssm_exclude_addrs[i]); | ||||
|         av_freep(&s->ssm_exclude_addrs[i]); | ||||
|     av_freep(&s->ssm_exclude_addrs); | ||||
|  | ||||
|     ffurl_close(s->rtp_hd); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user