diff options
author | Matias Elo <matias.elo@nokia.com> | 2017-01-04 14:02:41 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2017-01-09 19:42:49 +0300 |
commit | 24c6e10cba9d6efeaf13e4ea2a7a422764ae5eb2 (patch) | |
tree | 53fb736d1a86bde02395f2a4cd3af79fab9c540b /example/switch | |
parent | b18dc645a68fd0ae50f1a361aa408b3e74e46c0d (diff) |
example: free reserved shared memory blocks
Previously all reserverd shared memory blocks were not freed.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example/switch')
-rw-r--r-- | example/switch/odp_switch.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/example/switch/odp_switch.c b/example/switch/odp_switch.c index 4b944fe3b..f9c717601 100644 --- a/example/switch/odp_switch.c +++ b/example/switch/odp_switch.c @@ -1039,6 +1039,11 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } + if (odp_shm_free(shm)) { + printf("Error: shm free\n"); + exit(EXIT_FAILURE); + } + if (odp_term_local()) { printf("Error: term local\n"); exit(EXIT_FAILURE); |