Fix a memory leak and a gpr_strdup/free mismatch in json_test

pull/401/head
David Klempner 10 years ago
parent 034152f5be
commit 05fce429e2
  1. 3
      test/core/json/json_test.c

@ -151,7 +151,7 @@ static void test_pairs() {
GPR_ASSERT(!json);
}
free(scratchpad);
gpr_free(scratchpad);
}
}
@ -166,6 +166,7 @@ static void test_atypical() {
grpc_json_destroy(json->child);
json->child = brother;
grpc_json_destroy(json);
gpr_free(scratchpad);
}
int main(int argc, char **argv) {

Loading…
Cancel
Save