avutil/mem: document NULL related saftey of av_freep()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 4 Aug 2014 00:34:54 +0000 (02:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 4 Aug 2014 00:34:54 +0000 (02:34 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/mem.h

index 801c53f..0be2127 100644 (file)
@@ -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);