Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-04 04:34:54 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-08-04 04:34:54 +0400
commit8f6d36b3cb8e3afc6cfa3abb1582ec4d71a3e1ee (patch)
tree7d215261a36a43d1b67057575c89296143caee6f /libavutil/mem.h
parenta7e87fef214c4a63872c03aef93241422fa95dff (diff)
avutil/mem: document NULL related saftey of av_freep()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/mem.h')
-rw-r--r--libavutil/mem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h
index 801c53ff51..0be2127071 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);