diff --git a/libavutil/common.h b/libavutil/common.h index ab69eafda2..60885aa159 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -354,6 +354,11 @@ void av_free(void *ptr); void *av_mallocz(unsigned int size); char *av_strdup(const char *s); + +/** + * Frees memory and sets the pointer to NULL. + * @param arg pointer to the pointer which should be freed + */ void av_freep(void *ptr); #endif /* COMMON_H */ diff --git a/libavutil/mem.c b/libavutil/mem.c index 6a13d0e0c0..a91ac4a07b 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -122,10 +122,6 @@ void av_free(void *ptr) #endif } -/** - * Frees memory and sets the pointer to NULL. - * @param arg pointer to the pointer which should be freed - */ void av_freep(void *arg) { void **ptr= (void**)arg;