aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Dennedy <dan@dennedy.org>2008-07-21 22:01:03 -0700
committerDan Dennedy <dan@dennedy.org>2008-07-21 22:01:03 -0700
commit6747abb0572e15e4192ce30b410536d4e6761837 (patch)
treec9b386de5e6b6e0deb669a7e7f78e61ca7d82f38
parent99e9f575bfd7e0bbf24898377ffc0444604fbc2c (diff)
downloadlibraw1394-6747abb0572e15e4192ce30b410536d4e6761837.tar.gz
dispatch.c: fix a memory leak on not deleting the raw1394 wrapper handle.
-rw-r--r--src/dispatch.c3
1 files changed, 2 insertions, 1 deletions
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)