Use xrealloc instead of if(ptr) ptr = xmalloc().
[tinc] / src / linux /
drwxr-xr-x   ..
-rw-r--r-- 5598 device.c