Fix memory leak

pull/9881/head
Craig Tiller 8 years ago
parent a10f00c711
commit b73ad23bd8
  1. 5
      test/core/support/spinlock_test.c

@ -70,7 +70,10 @@ static struct test *test_new(int threads, int64_t iterations, int incr_step) {
}
/* Return pointer to a new struct test. */
static void test_destroy(struct test *m) { gpr_free(m); }
static void test_destroy(struct test *m) {
gpr_free(m->threads);
gpr_free(m);
}
/* Create m->threads threads, each running (*body)(m) */
static void test_create_threads(struct test *m, void (*body)(void *arg)) {

Loading…
Cancel
Save