Skip to content

Instantly share code, notes, and snippets.

@nyuichi
Created January 30, 2015 08:09
Show Gist options
  • Select an option

  • Save nyuichi/f772d9a9510180b2bc1c to your computer and use it in GitHub Desktop.

Select an option

Save nyuichi/f772d9a9510180b2bc1c to your computer and use it in GitHub Desktop.
[yuichi@joestar build]$ find .. -name "*.[ch]" | xargs grep "[^_a-z]\\(realloc\\|malloc\\|free\\|calloc\\)("
../extlib/benz/include/picrin/xhash.h: x->buckets = realloc(x->buckets, (x->size + 1) * sizeof(xh_entry *));
../extlib/benz/include/picrin/xhash.h: free(x->buckets);
../extlib/benz/include/picrin/xhash.h: e = malloc(x->voffset + x->vwidth);
../extlib/benz/include/picrin/xhash.h: free(q);
../extlib/benz/include/picrin/xhash.h: free(q);
../extlib/benz/include/picrin/xhash.h: free(e);
../extlib/benz/include/picrin/xhash.h: free(x->buckets);
../extlib/benz/include/picrin.h: free(ptr);
../extlib/benz/include/picrin.h: return realloc(ptr, size);
../extlib/benz/include/picrin.h: return malloc(size);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment