diff options
author | Patrick McHardy <kaber@trash.net> | 2010-07-31 12:33:24 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-07-31 12:33:24 +0200 |
commit | d686e538edea1ab8ddcfd754730d2bc8542196e3 (patch) | |
tree | b67bd1218ecf137225463aa564156f20bf5730e7 /example | |
parent | 3bfa6bbb7ebd82c8cf350a7874824001e9be9215 (diff) |
example: revert MM endpoint destruction
The endpoint can neither be destroyed before the handle is closed as it
doesn't clean up its open transactions and thus causes a use-after-free
on shutdown, nor after the handle has been closed since it needs a valid
handle.
Leak them for now until a better solution has been found.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'example')
-rw-r--r-- | example/pp-access-rights-terminate.c | 1 | ||||
-rw-r--r-- | example/pp-access-rights.c | 1 | ||||
-rw-r--r-- | example/pp-detach.c | 1 | ||||
-rw-r--r-- | example/pp-info-request.c | 1 | ||||
-rw-r--r-- | example/pp-location-update.c | 1 |
5 files changed, 0 insertions, 5 deletions
diff --git a/example/pp-access-rights-terminate.c b/example/pp-access-rights-terminate.c index 1f745f4..87cc7c0 100644 --- a/example/pp-access-rights-terminate.c +++ b/example/pp-access-rights-terminate.c @@ -63,7 +63,6 @@ int main(int argc, char **argv) mm_access_rights_terminate_req(dh, mme); dect_event_loop(); - 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 e86e69a..bb9a5ab 100644 --- a/example/pp-access-rights.c +++ b/example/pp-access-rights.c @@ -196,7 +196,6 @@ int main(int argc, char **argv) mm_access_rights_req(dh, mme); dect_event_loop(); - 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 baee131..ad6f956 100644 --- a/example/pp-detach.c +++ b/example/pp-detach.c @@ -49,7 +49,6 @@ int main(int argc, char **argv) mm_detach_req(dh, mme); dect_event_loop(); - 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 2694390..cb0d22b 100644 --- a/example/pp-info-request.c +++ b/example/pp-info-request.c @@ -67,7 +67,6 @@ int main(int argc, char **argv) mm_info_req(dh, mme); dect_event_loop(); - 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 9d10507..9585d92 100644 --- a/example/pp-location-update.c +++ b/example/pp-location-update.c @@ -88,7 +88,6 @@ int main(int argc, char **argv) mm_locate_req(dh, mme); dect_event_loop(); - dect_mm_endpoint_destroy(dh, mme); dect_common_cleanup(dh); return 0; } |