| 838 | } |
| 839 | |
| 840 | static void rtpe_ctx_free(void *param) |
| 841 | { |
| 842 | struct rtpe_ctx *ctx = (struct rtpe_ctx *)param; |
| 843 | if (ctx) { |
| 844 | if (ctx->stats) { |
| 845 | rtpe_stats_free(ctx->stats); |
| 846 | pkg_free(ctx->stats); |
| 847 | } |
| 848 | pkg_free(ctx); |
| 849 | } |
| 850 | } |
| 851 | |
| 852 | static inline struct rtpe_ctx *rtpe_ctx_get(void) |
| 853 | { |
nothing calls this directly
no test coverage detected