projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
569fd66
)
Fix double multiplication of lb by n in calloc_explicitly_typed
author
Ivan Maidanski
<ivmai@mail.ru>
Thu, 15 Sep 2016 06:47:23 +0000
(09:47 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Thu, 15 Sep 2016 06:47:23 +0000
(09:47 +0300)
* typd_mlc.c (GC_calloc_explicitly_typed): Do not multiply lb by n
twice (when passed to GC_malloc in case of
GC_general_register_disappearing_link fails).
typd_mlc.c
patch
|
blob
|
history
diff --git
a/typd_mlc.c
b/typd_mlc.c
index
8e92cda
..
104e7c4
100644
(file)
--- a/
typd_mlc.c
+++ b/
typd_mlc.c
@@
-683,7
+683,7
@@
GC_API GC_ATTR_MALLOC void * GC_CALL GC_calloc_explicitly_typed(size_t n,
/* Couldn't register it due to lack of memory. Punt. */
/* This will probably fail too, but gives the recovery code */
/* a chance. */
-
return(GC_malloc(n*lb)
);
+
return GC_malloc(lb
);
}
}
return op;