Merge pull request #401 from dklempner/asan

Fix a memory leak and a gpr_strdup/free mismatch in json_test
pull/357/head^2
Nicolas Noble 10 years ago
commit 56c3dd7d6c
  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