buffer allocation/destruction
Bernhard Fischer
rep.nop at aon.at
Mon Aug 29 15:35:46 PDT 2005
Hi,
I'm in the process of making more applets peruse RESERVE_CONFIG_BUFFER.
I'm not sure how to deal with the destruction of buffer in the case of
FEATURE_CLEANUP, though.
Would it be ok to introduce something like this for the malloc-case:
...
#if defined CONFIG_FEATURE_CLEAN_UP && defined CONFIG_FEATURE_BUFFERS_USE_MALLOC
#define CLEANUP_CONFIG_BUFFER(buffer) free(buffer)
#else
#define CLEANUP_CONFIG_BUFFER(buffer) /*empty / ((void)0)*/
#endif
TIA,
Bernhard
More information about the busybox
mailing list