ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Mon Aug  4 
02:34:54 2014 +0200| [8f6d36b3cb8e3afc6cfa3abb1582ec4d71a3e1ee] | committer: 
Michael Niedermayer

avutil/mem: document NULL related saftey of av_freep()

Signed-off-by: Michael Niedermayer <michae...@gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f6d36b3cb8e3afc6cfa3abb1582ec4d71a3e1ee
---

 libavutil/mem.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/mem.h b/libavutil/mem.h
index 801c53f..0be2127 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -253,6 +253,7 @@ void *av_memdup(const void *p, size_t size);
  * av_realloc() and set the pointer pointing to it to NULL.
  * @param ptr Pointer to the pointer to the memory block which should
  * be freed.
+ * @note passing a pointer to a NULL pointer is safe and leads to no action.
  * @see av_free()
  */
 void av_freep(void *ptr);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to