Commit 8f6d36b3 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a7e87fef
...@@ -253,6 +253,7 @@ void *av_memdup(const void *p, size_t size); ...@@ -253,6 +253,7 @@ void *av_memdup(const void *p, size_t size);
* av_realloc() and set the pointer pointing to it to NULL. * av_realloc() and set the pointer pointing to it to NULL.
* @param ptr Pointer to the pointer to the memory block which should * @param ptr Pointer to the pointer to the memory block which should
* be freed. * be freed.
* @note passing a pointer to a NULL pointer is safe and leads to no action.
* @see av_free() * @see av_free()
*/ */
void av_freep(void *ptr); void av_freep(void *ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment