Do not check `NULL` to call g_free(): g_free() accepts `NULL`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 10 Jul 2019 21:28:00 +0000 (17:28 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:35 +0000 (11:53 -0400)
commitbe1b2e7ebb6f56bf47bf918dd6ebc161f73d358b
tree2ad39c8a133e258fa475b5a21d5224284f475fc3
parent70ad0c6902af54af4e47017bc06493d86d2c1f85
Do not check `NULL` to call g_free(): g_free() accepts `NULL`

Semantic patch:

    @@
    expression e;
    @@

    - if (e) { g_free(e); }
    + g_free(e);

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ifbbca48f04cc198543aaa5d06d3b906b32fdf137
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1684
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/ctf/common/metadata/visitor-generate-ir.c
src/plugins/ctf/fs-src/fs.c
src/plugins/ctf/fs-src/query.c
src/plugins/ctf/lttng-live/data-stream.c
src/plugins/lttng-utils/debug-info/trace-ir-mapping.c
src/plugins/text/details/obj-lifetime-mgmt.c
src/plugins/text/dmesg/dmesg.c
src/python-plugin-provider/python-plugin-provider.c
This page took 0.027644 seconds and 4 git commands to generate.