| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 /* Frees a symbol table. */ | 191 /* Frees a symbol table. */ |
| 193 void XRaySymbolTableFree(struct XRaySymbolTable* symtab) { | 192 void XRaySymbolTableFree(struct XRaySymbolTable* symtab) { |
| 194 XRayStringPoolFree(symtab->string_pool); | 193 XRayStringPoolFree(symtab->string_pool); |
| 195 XRaySymbolPoolFree(symtab->symbol_pool); | 194 XRaySymbolPoolFree(symtab->symbol_pool); |
| 196 XRayHashTableFree(symtab->hash_table); | 195 XRayHashTableFree(symtab->hash_table); |
| 197 symtab->num_symbols = 0; | 196 symtab->num_symbols = 0; |
| 198 XRayFree(symtab); | 197 XRayFree(symtab); |
| 199 } | 198 } |
| 200 | 199 |
| 201 #endif /* XRAY */ | 200 #endif /* XRAY */ |
| OLD | NEW |