Browse Source

Fix #586

pull/587/head
Max Lv 8 years ago
parent
commit
6c2c49ad60
1 changed files with 5 additions and 5 deletions
  1. 10
      src/utils.h

10
src/utils.h

@ -203,11 +203,11 @@ char *ss_strndup(const char *s, size_t n);
int set_nofile(int nofile);
#endif
inline void ss_free(void *ptr)
{
free(ptr);
ptr = NULL;
}
#define ss_free(ptr) \
do { \
free(ptr); \
ptr = NULL; \
} while(0)
inline void *ss_malloc(size_t size)
{

Loading…
Cancel
Save