Commit b90fcb4d42c6d91a86b96f419e045d9a154597b5

Maksym Borodin 2013-11-13T11:36:12

api.c: Release io_data->ptr when releasing io_data in io_free()

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/api.c b/api.c
index 3ceaa8e..f9e2fd0 100644
--- a/api.c
+++ b/api.c
@@ -797,6 +797,7 @@ static void io_free()
 		do {
 			io_next = io_list->next;
 
+			free(io_list->io_data->ptr);
 			free(io_list->io_data);
 			free(io_list);