# HG changeset patch # User michael # Date 1136367757 0 # Node ID e23d2bddf12269509c74dd6a3d245839470217c0 # Parent 5d9d55e2a8c6fdbc233fd0e6afbc00ec8ea7996c av_freep() recommandition diff -r 5d9d55e2a8c6 -r e23d2bddf122 mem.c --- a/mem.c Wed Jan 04 03:01:05 2006 +0000 +++ b/mem.c Wed Jan 04 09:42:37 2006 +0000 @@ -117,7 +117,11 @@ #endif } -/* NOTE: ptr = NULL is explicetly allowed */ +/** + * Free memory which has been allocated with av_malloc(z)() or av_realloc(). + * NOTE: ptr = NULL is explicetly allowed + * Note2: it is recommanded that you use av_freep() instead + */ void av_free(void *ptr) { /* XXX: this test should not be needed on most libcs */