jvp_object_contains: remove unnecessary jv_copy

This commit is contained in:
Emanuele Torre authored and Nico Williams committed 2023-10-30 22:12:27 -05:00
1 parent e85e358233
commit d5590f90da
1 file changed
+1 -2
+1 -2
View File
@@ -1729,10 +1729,9 @@ static int jvp_object_contains(jv a, jv b) {
int r = 1;
jv_object_foreach(b, key, b_val) {
jv a_val = jv_object_get(jv_copy(a), jv_copy(key));
jv a_val = jv_object_get(jv_copy(a), key);
r = jv_contains(a_val, b_val);
jv_free(key);
if (!r) break;
}