X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fconf.c;h=c1bfcfd45b8d87eacfae6d3be878033121ee85cc;hp=995407d03d4d4ba6863ee991c6da927df06e8db8;hb=0e428499a49b2335f4859058739fa2b20f4c410f;hpb=9d035200e9006c4d4cf6951c54641e06c0bdf2bc diff --git a/src/bin/lttng/conf.c b/src/bin/lttng/conf.c index 995407d03..c1bfcfd45 100644 --- a/src/bin/lttng/conf.c +++ b/src/bin/lttng/conf.c @@ -65,9 +65,7 @@ static FILE *open_config(char *path, const char *mode) } error: - if (file_path) { - free(file_path); - } + free(file_path); return fp; }