diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2023-10-28 23:58:03 +0200 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2023-10-30 22:12:27 -0500 |
commit | d5590f90dad1764a7e0aa35f83c6ef4611939194 (patch) | |
tree | e3967b85ab273d150cb226273161de3a3765585a | |
parent | e85e3582330af543f1a7b293c6b9b27f342670a2 (diff) |
jvp_object_contains: remove unnecessary jv_copy
-rw-r--r-- | src/jv.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |