diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-06-30 14:36:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-30 14:36:31 -0400 |
commit | 2713de2a47f652f1d0637df7b9b02b6ec039a8f6 (patch) | |
tree | 7a6d68c69767eec8aed406807af090aa132f4a0a /src/test/test_dir_handle_get.c | |
parent | 9a92f582191e76039b639ef29167a05563623d0c (diff) | |
download | tor-2713de2a47f652f1d0637df7b9b02b6ec039a8f6.tar.gz tor-2713de2a47f652f1d0637df7b9b02b6ec039a8f6.zip |
Fix more naked strdup/malloc/free instances
Diffstat (limited to 'src/test/test_dir_handle_get.c')
-rw-r--r-- | src/test/test_dir_handle_get.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_dir_handle_get.c b/src/test/test_dir_handle_get.c index 927fa8b61d..3282037243 100644 --- a/src/test/test_dir_handle_get.c +++ b/src/test/test_dir_handle_get.c @@ -467,7 +467,7 @@ static or_options_t *mock_options = NULL; static void init_mock_options(void) { - mock_options = malloc(sizeof(or_options_t)); + mock_options = tor_malloc(sizeof(or_options_t)); memset(mock_options, 0, sizeof(or_options_t)); mock_options->TestingTorNetwork = 1; } |