| OLD | NEW |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. */ |
| 4 */ | |
| 5 | 4 |
| 6 /* XRay symbol table */ | 5 /* XRay symbol table */ |
| 7 | 6 |
| 8 #define _GNU_SOURCE | 7 #define _GNU_SOURCE |
| 9 #include <stdint.h> | 8 #include <stdint.h> |
| 10 #include <stdio.h> | 9 #include <stdio.h> |
| 11 #include <stdlib.h> | 10 #include <stdlib.h> |
| 12 #include <string.h> | 11 #include <string.h> |
| 13 | 12 |
| 14 #if defined(__GLIBC__) | 13 #if defined(__GLIBC__) |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 /* Frees a symbol table. */ | 177 /* Frees a symbol table. */ |
| 179 void XRaySymbolTableFree(struct XRaySymbolTable* symtab) { | 178 void XRaySymbolTableFree(struct XRaySymbolTable* symtab) { |
| 180 XRayStringPoolFree(symtab->string_pool); | 179 XRayStringPoolFree(symtab->string_pool); |
| 181 XRaySymbolPoolFree(symtab->symbol_pool); | 180 XRaySymbolPoolFree(symtab->symbol_pool); |
| 182 XRayHashTableFree(symtab->hash_table); | 181 XRayHashTableFree(symtab->hash_table); |
| 183 symtab->num_symbols = 0; | 182 symtab->num_symbols = 0; |
| 184 XRayFree(symtab); | 183 XRayFree(symtab); |
| 185 } | 184 } |
| 186 | 185 |
| 187 #endif /* XRAY */ | 186 #endif /* XRAY */ |
| OLD | NEW |