Explorar o código

dtstyle: Coverity 88475

Peter Howkins %!s(int64=6) %!d(string=hai) anos
pai
achega
5481b6b753
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      cde/programs/dtstyle/Main.c

+ 2 - 4
cde/programs/dtstyle/Main.c

@@ -570,11 +570,9 @@ malloc_trace(0);
 
     _DtWsmSetBackdropSearchPath(style.screen, dirs, style.useMultiColorIcons);
 
-    if (string != NULL)
-      XtFree((char *)string);
+    XtFree((char *)string);
     
-    if (dirs != NULL)
-      XtFree((char *)dirs); 
+    XtFree((char *)dirs);