git.haldean.org expel / 34b6555
fix uri unit test memory mgmt Haldean Brown 6 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5959 assert(xl_uri_eq(&parsed, &user));
6060 free(parsed.name);
6161
62 /* each of these has two refs: one from the original URI and one from
63 * the one we made as a value. We release twice to release both refs. */
64 assert(xl_release(user.as_value) == OK);
6265 assert(xl_release(user.as_value) == OK);
6366 assert(xl_release(native.as_value) == OK);
67 assert(xl_release(native.as_value) == OK);
68 assert(xl_release(unknown.as_value) == OK);
6469 assert(xl_release(unknown.as_value) == OK);
6570
6671 free(user.name);