aboutsummaryrefslogtreecommitdiff
path: root/libqcdm
diff options
context:
space:
mode:
Diffstat (limited to 'libqcdm')
-rw-r--r--libqcdm/src/result.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libqcdm/src/result.c b/libqcdm/src/result.c
index d51a0502..d508fb76 100644
--- a/libqcdm/src/result.c
+++ b/libqcdm/src/result.c
@@ -53,14 +53,11 @@ static void
val_free (Val *v)
{
if (v->type == VAL_TYPE_STRING) {
- if (v->u.s)
- free (v->u.s);
+ free (v->u.s);
} else if (v->type == VAL_TYPE_U8_ARRAY) {
- if (v->u.u8_array);
- free (v->u.u8_array);
+ free (v->u.u8_array);
} else if (v->type == VAL_TYPE_U16_ARRAY) {
- if (v->u.u16_array);
- free (v->u.u16_array);
+ free (v->u.u16_array);
}
free (v->key);
memset (v, 0, sizeof (*v));