summaryrefslogtreecommitdiffstats
path: root/libdimension/progress.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-09-26 00:46:34 -0400
committerTavian Barnes <tavianator@gmail.com>2010-09-26 00:46:34 -0400
commit725bd4f0b4cc067fc2770f7f8ffd9c815c745239 (patch)
tree2bf8c049473d27057ce8cbac2a08eb2be05443b6 /libdimension/progress.c
parent46bf25a9bed9eec6aaa8c4cad8144c7df629da30 (diff)
downloaddimension-725bd4f0b4cc067fc2770f7f8ffd9c815c745239.tar.xz
Add dmnsn_free() to match dmnsn_malloc().
Diffstat (limited to 'libdimension/progress.c')
-rw-r--r--libdimension/progress.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libdimension/progress.c b/libdimension/progress.c
index 835f150..aeac2ac 100644
--- a/libdimension/progress.c
+++ b/libdimension/progress.c
@@ -80,11 +80,11 @@ dmnsn_delete_progress(dmnsn_progress *progress)
dmnsn_error(DMNSN_SEVERITY_LOW, "Leaking condition variable.");
}
- free(progress->rwlock);
- free(progress->mutex);
- free(progress->cond);
+ dmnsn_free(progress->rwlock);
+ dmnsn_free(progress->mutex);
+ dmnsn_free(progress->cond);
dmnsn_delete_array(progress->elements);
- free(progress);
+ dmnsn_free(progress);
}
}
@@ -102,7 +102,7 @@ dmnsn_finish_progress(dmnsn_progress *progress)
dmnsn_error(DMNSN_SEVERITY_MEDIUM, "Joining worker thread failed.");
} else if (ptr) {
retval = *(int *)ptr;
- free(ptr);
+ dmnsn_free(ptr);
/* Wake up all waiters */
dmnsn_done_progress(progress);
}