Revision 0c8eb72e

View differences:

libavutil/mem.c
138 138

  
139 139
void av_free(void *ptr)
140 140
{
141
    /* XXX: this test should not be needed on most libcs */
142
    if (ptr)
143 141
#if CONFIG_MEMALIGN_HACK
142
    if (ptr)
144 143
        free((char*)ptr - ((char*)ptr)[-1]);
145 144
#else
146
        free(ptr);
145
    free(ptr);
147 146
#endif
148 147
}
149 148

  

Also available in: Unified diff