Permalink
Browse files

fix nasty bug in the realloc tramp

  • Loading branch information...
1 parent 982f062 commit 1514ba484ac3789b3da15b413a3b521b29ba642d @tmm1 tmm1 committed Apr 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/tracers/memory.c
View
@@ -76,7 +76,7 @@ realloc_tramp(void *ptr, size_t size)
stats.realloc_bytes_requested += size;
stats.realloc_calls++;
- stats.realloc_bytes_actual += malloc_usable_size(ptr);
+ stats.realloc_bytes_actual += malloc_usable_size(ret);
errno = err;
return ret;

0 comments on commit 1514ba4

Please sign in to comment.