fix memory leaks
This commit is contained in:
@@ -15,5 +15,6 @@ int main(void)
|
||||
printf("object %p\n", it.value);
|
||||
}
|
||||
|
||||
b_array_release(array);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -6,5 +6,6 @@ int main(void)
|
||||
b_number *number = b_number_create_float(6.8);
|
||||
|
||||
printf("number=%zd\n", B_NUMBER_IVAL(number));
|
||||
b_number_release(number);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -112,5 +112,8 @@ int main(void)
|
||||
printf("%d\n", item->value);
|
||||
}
|
||||
|
||||
b_tree_release(tree);
|
||||
b_dict_release(dict);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -8,5 +8,7 @@ int main(void)
|
||||
char str[B_UUID_STRING_MAX];
|
||||
b_uuid_to_cstr(uuid, str);
|
||||
printf("%s\n", str);
|
||||
|
||||
b_uuid_release(uuid);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user