Do not check `NULL` to call free(): free() accepts `NULL`
[babeltrace.git] / src / common / common.c
index beedec66919b917b5696168cd39dc7632f12472b..d092768a147cf9a18bcabd001229d5966ff5fdfa 100644 (file)
@@ -1115,9 +1115,7 @@ error:
                norm_path = NULL;
        }
 end:
-       if (tmp) {
-               free(tmp);
-       }
+       free(tmp);
        return norm_path;
 }
 #else
This page took 0.02492 seconds and 4 git commands to generate.