diff --git a/lib/rpmtd.c b/lib/rpmtd.c index 89482335c..d1c49cf33 100644 --- a/lib/rpmtd.c +++ b/lib/rpmtd.c @@ -40,8 +40,8 @@ void rpmtdFreeData(rpmtd td) assert(td != NULL); if (td->flags & RPMTD_ALLOCED) { - assert(td->data != NULL); if (td->flags & RPMTD_PTR_ALLOCED) { + assert(td->data != NULL); char **data = td->data; for (int i = 0; i < td->count; i++) { free(data[i]);