diff options
Diffstat (limited to 'ord.c')
-rw-r--r-- | ord.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -0,0 +1,10 @@ +#include <stdlib.h> +#include <stdbool.h> +#include "icclient/client.h" +#include "icclient/ord.h" + +void icclient_ord_free(struct icclient_ord_order *order) +{ + for (size_t i = 0; i < order->nitems; i++) + icclient_freeproduct(order->items[i]->product); +} |