Do not check `NULL` to call g_free(): g_free() accepts `NULL`
[babeltrace.git] / src / python-plugin-provider / python-plugin-provider.c
index 145d2200527f4f11ad689633e29b7842a36d6adc..5bdcbfcd78c035ec4bbbd0a4249d8b7c077d1efb 100644 (file)
@@ -758,9 +758,7 @@ end:
        bt_plugin_put_ref(plugin);
        Py_XDECREF(py_plugin_info);
 
-       if (basename) {
-               g_free(basename);
-       }
+       g_free(basename);
 
        return status;
 }
This page took 0.023594 seconds and 4 git commands to generate.