@@ -2700,9 +2700,9 @@ void clear_work(struct work *work)
if (free_tmpl) {
blktmpl_free(work->tmpl);
free(work->tmpl_refcount);
- work->tmpl = NULL;
- work->tmpl_refcount = NULL;
}
+ work->tmpl = NULL;
+ work->tmpl_refcount = NULL;