Skip to content

Commit 0e00fc7

Browse files
Merge #1383: util: remove unused checked_realloc
b097a46 util: remove unused checked_realloc (Cory Fields) Pull request description: Usage was removed in 6fe5043 . This should be a NOOP. Noticed when analyzing for zenbleed exposure: stdlib calls that aren't optimized away. In this case realloc isn't making it into the final binary, but as far as I can tell this is completely dead code and should be dropped. ACKs for top commit: jonasnick: ACK b097a46 real-or-random: ACK b097a46 Tree-SHA512: d4249215eddd4035be2b50a8bb48b8a681abdab4ab41ca53f6c2a2507edfbc9ffa39ba22eb48e7da52f978e224198294495ce64f9d571d98c19283b20b82a63a
2 parents 2bd5f3e + b097a46 commit 0e00fc7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/util.h

-8
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,6 @@ static SECP256K1_INLINE void *checked_malloc(const secp256k1_callback* cb, size_
152152
return ret;
153153
}
154154

155-
static SECP256K1_INLINE void *checked_realloc(const secp256k1_callback* cb, void *ptr, size_t size) {
156-
void *ret = realloc(ptr, size);
157-
if (ret == NULL) {
158-
secp256k1_callback_call(cb, "Out of memory");
159-
}
160-
return ret;
161-
}
162-
163155
#if defined(__BIGGEST_ALIGNMENT__)
164156
#define ALIGNMENT __BIGGEST_ALIGNMENT__
165157
#else

0 commit comments

Comments
 (0)