mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
12 lines
340 B
Diff
12 lines
340 B
Diff
--- a/common/slp_xmalloc.c
|
|
+++ b/common/slp_xmalloc.c
|
|
@@ -206,7 +206,7 @@ void * _xrealloc(const char * file, int line, void * ptr, size_t size)
|
|
if (newptr == 0)
|
|
return 0;
|
|
memcpy(newptr, ptr, x->size);
|
|
- _xfree(file, line, x);
|
|
+ _xfree(file, line, ptr);
|
|
}
|
|
return newptr;
|
|
}
|