aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/tsi/fake_transport_security.c
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-04-08 01:38:29 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-04-08 01:38:29 +0200
commitb29d8cfeb886e951dcbacc0f42f12624a2684086 (patch)
tree52196737d627b9b755ed3d93715b7681b2627b15 /src/core/lib/tsi/fake_transport_security.c
parentbdf80ac31f407d7886acd6a0fe2fb1ab4c43c6c9 (diff)
Last few mallocs / frees.
Diffstat (limited to 'src/core/lib/tsi/fake_transport_security.c')
-rw-r--r--src/core/lib/tsi/fake_transport_security.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/tsi/fake_transport_security.c b/src/core/lib/tsi/fake_transport_security.c
index a0f69c3d64..0e20d6fd71 100644
--- a/src/core/lib/tsi/fake_transport_security.c
+++ b/src/core/lib/tsi/fake_transport_security.c
@@ -36,6 +36,7 @@
#include <stdlib.h>
#include <string.h>
+#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include <grpc/support/useful.h>
@@ -137,7 +138,7 @@ static int tsi_fake_frame_ensure_size(tsi_fake_frame *frame) {
frame->data = gpr_malloc(frame->allocated_size);
if (frame->data == NULL) return 0;
} else if (frame->size > frame->allocated_size) {
- unsigned char *new_data = realloc(frame->data, frame->size);
+ unsigned char *new_data = gpr_realloc(frame->data, frame->size);
if (new_data == NULL) {
gpr_free(frame->data);
frame->data = NULL;