From 6747abb0572e15e4192ce30b410536d4e6761837 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Mon, 21 Jul 2008 22:01:03 -0700 Subject: [PATCH] dispatch.c: fix a memory leak on not deleting the raw1394 wrapper handle. --- src/dispatch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispatch.c b/src/dispatch.c index b15e8c5..6786a52 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -61,7 +61,8 @@ void raw1394_destroy_handle(raw1394handle_t handle) if (handle->is_fw) fw_destroy_handle(handle->mode.fw); else - ieee1394_destroy_handle(handle->mode.ieee1394);; + ieee1394_destroy_handle(handle->mode.ieee1394); + free(handle); } raw1394handle_t raw1394_new_handle_on_port(int port)