strange code in mem-pool.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

while working on my second patch I wonder about this peace of code in
mem-pool.h:

#define FREE(ptr)                \
    if (ptr != NULL) {            \
        free ((void *)ptr);        \
        ptr = (void *)0xeeeeeeee;    \
    }                     

Why is the pointer not set to NULL?

Corin




[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux