X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Furi.c;h=5cc53525f1f09a37c1dd9ae73ebae40d15316656;hp=f64a0de9fb88d24f4980fbce8623289fbd18510a;hb=0e428499a49b2335f4859058739fa2b20f4c410f;hpb=9d035200e9006c4d4cf6951c54641e06c0bdf2bc diff --git a/src/common/uri.c b/src/common/uri.c index f64a0de9f..5cc53525f 100644 --- a/src/common/uri.c +++ b/src/common/uri.c @@ -189,10 +189,7 @@ int uri_compare(struct lttng_uri *uri1, struct lttng_uri *uri2) __attribute__((visibility("hidden"))) void uri_free(struct lttng_uri *uri) { - /* Safety check */ - if (uri != NULL) { - free(uri); - } + free(uri); } /*