Skip to content

Commit 8eafe80

Browse files
committed
src/xpath.c: coverity fix - resource double free
1 parent f545e32 commit 8eafe80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/xpath.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3666,7 +3666,9 @@ warn_equality_value(const struct lyxp_expr *exp, struct lyxp_set *set, uint32_t
36663666
type->plugin->free(set->ctx, &storage);
36673667
}
36683668
}
3669-
free(value);
3669+
if (value) {
3670+
free(value);
3671+
}
36703672
}
36713673
}
36723674

0 commit comments

Comments
 (0)