osnoise.c (542898c5aa5c6a3179dffb1d1606884a63f75fed) | osnoise.c (4bbf59a9db44c78dd3e5c72057548f7c1eb8d2ba) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2021 Red Hat Inc, Daniel Bristot de Oliveira <bristot@kernel.org> 4 */ 5 6#include <sys/types.h> 7#include <sys/stat.h> 8#include <pthread.h> --- 736 unchanged lines hidden (view full) --- 745 free(context); 746} 747 748/* 749 * osnoise_destroy_tool - disable trace, restore configs and free data 750 */ 751void osnoise_destroy_tool(struct osnoise_tool *top) 752{ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2021 Red Hat Inc, Daniel Bristot de Oliveira <bristot@kernel.org> 4 */ 5 6#include <sys/types.h> 7#include <sys/stat.h> 8#include <pthread.h> --- 736 unchanged lines hidden (view full) --- 745 free(context); 746} 747 748/* 749 * osnoise_destroy_tool - disable trace, restore configs and free data 750 */ 751void osnoise_destroy_tool(struct osnoise_tool *top) 752{ |
753 if (!top) 754 return; 755 |
|
753 trace_instance_destroy(&top->trace); 754 755 if (top->context) 756 osnoise_put_context(top->context); 757 758 free(top); 759} 760 --- 115 unchanged lines hidden --- | 756 trace_instance_destroy(&top->trace); 757 758 if (top->context) 759 osnoise_put_context(top->context); 760 761 free(top); 762} 763 --- 115 unchanged lines hidden --- |