diff options
author | Patrick McHardy <kaber@trash.net> | 2010-07-31 10:31:40 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-07-31 10:31:40 +0200 |
commit | 9af8e4edbb79c8ecc84bda168b5af9098f89045e (patch) | |
tree | dd682565094602c3a66933090543f25eb36e54b1 /example | |
parent | 4c5e3a4a0340e8b9eae88199eb6cc42802ad6b8f (diff) |
example: fix use after free
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'example')
-rw-r--r-- | example/pp-access-rights-terminate.c | 2 | ||||
-rw-r--r-- | example/pp-access-rights.c | 2 | ||||
-rw-r--r-- | example/pp-detach.c | 2 | ||||
-rw-r--r-- | example/pp-info-request.c | 2 | ||||
-rw-r--r-- | example/pp-location-update.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/example/pp-access-rights-terminate.c b/example/pp-access-rights-terminate.c index 5f956bb..1f745f4 100644 --- a/example/pp-access-rights-terminate.c +++ b/example/pp-access-rights-terminate.c @@ -63,7 +63,7 @@ int main(int argc, char **argv) mm_access_rights_terminate_req(dh, mme); dect_event_loop(); - dect_common_cleanup(dh); dect_mm_endpoint_destroy(dh, mme); + dect_common_cleanup(dh); return 0; } diff --git a/example/pp-access-rights.c b/example/pp-access-rights.c index a32521d..8cfe48a 100644 --- a/example/pp-access-rights.c +++ b/example/pp-access-rights.c @@ -188,8 +188,8 @@ int main(int argc, char **argv) mm_access_rights_req(dh, mme); dect_event_loop(); - dect_common_cleanup(dh); dect_mm_endpoint_destroy(dh, mme); + dect_common_cleanup(dh); close(rand_fd); return 0; } diff --git a/example/pp-detach.c b/example/pp-detach.c index 710886a..baee131 100644 --- a/example/pp-detach.c +++ b/example/pp-detach.c @@ -49,7 +49,7 @@ int main(int argc, char **argv) mm_detach_req(dh, mme); dect_event_loop(); - dect_common_cleanup(dh); dect_mm_endpoint_destroy(dh, mme); + dect_common_cleanup(dh); return 0; } diff --git a/example/pp-info-request.c b/example/pp-info-request.c index 71d232f..2694390 100644 --- a/example/pp-info-request.c +++ b/example/pp-info-request.c @@ -67,7 +67,7 @@ int main(int argc, char **argv) mm_info_req(dh, mme); dect_event_loop(); - dect_common_cleanup(dh); dect_mm_endpoint_destroy(dh, mme); + dect_common_cleanup(dh); return 0; } diff --git a/example/pp-location-update.c b/example/pp-location-update.c index 9ed63cc..9d10507 100644 --- a/example/pp-location-update.c +++ b/example/pp-location-update.c @@ -88,7 +88,7 @@ int main(int argc, char **argv) mm_locate_req(dh, mme); dect_event_loop(); - dect_common_cleanup(dh); dect_mm_endpoint_destroy(dh, mme); + dect_common_cleanup(dh); return 0; } |