[Ffmpeg-devel] [PATCH] Base64 code

Oded Shimon ods15
Sat Oct 28 08:51:02 CEST 2006


On Fri, Oct 27, 2006 at 08:07:47PM -0500, Ryan Martell wrote:
> 
> On Oct 27, 2006, at 7:59 PM, Michael Niedermayer wrote:
> >[...]
> >>@@ -203,7 +203,7 @@
> >>              hoststr,
> >>              auth_b64);
> >>
> >>-    av_freep(&auth_b64);
> >>+    av_free(auth_b64);
> >
> >why?
> 
> I don't know.  ;-)
> 
> I allocate it with av_malloc, and have never seen av_freep(), so  
> figured I would change it to something I knew would work right.
> 
> I assume that av_freep() frees the memory that the pointer points to,  
> but assumptions can get me in trouble...

void av_freep(void**p) { av_free(*p); *p = NULL; }

- ods15




More information about the ffmpeg-devel mailing list