Skip to content
Snippets Groups Projects
Commit 9db72681 authored by Paddy Byers's avatar Paddy Byers
Browse files

Use gpr_free() in gpr_free_aligned()

parent fbdf51b0
No related branches found
No related tags found
No related merge requests found
/* /*
* *
* Copyright 2015, Google Inc. * Copyright 2015-2016, Google Inc.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
...@@ -87,4 +87,4 @@ void *gpr_malloc_aligned(size_t size, size_t alignment_log) { ...@@ -87,4 +87,4 @@ void *gpr_malloc_aligned(size_t size, size_t alignment_log) {
return (void *)ret; return (void *)ret;
} }
void gpr_free_aligned(void *ptr) { free(((void **)ptr)[-1]); } void gpr_free_aligned(void *ptr) { gpr_free(((void **)ptr)[-1]); }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment