Parcourir la source

Another little touch up to avoid problems...

Eric Andersen il y a 21 ans
Parent
commit
bc237c2584
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      utils/ldd.c

+ 2 - 0
utils/ldd.c

@@ -461,6 +461,8 @@ static struct library * find_elf_interpreter(Elf32_Ehdr* ehdr)
 				newlib = cur;
 				free(newlib->name);
 				free(newlib->path);
+				newlib->name = NULL;
+				newlib->path = NULL;
 				return NULL;
 			}
 		}