1--- a/common/slp_xmalloc.c 2+++ b/common/slp_xmalloc.c 3@@ -206,7 +206,7 @@ void * _xrealloc(const char * file, int line, void * ptr, size_t size) 4 if (newptr == 0) 5 return 0; 6 memcpy(newptr, ptr, x->size); 7- _xfree(file, line, x); 8+ _xfree(file, line, ptr); 9 } 10 return newptr; 11 }