Browse Source

Another little touch up to avoid problems...

Eric Andersen 21 years ago
parent
commit
bc237c2584
1 changed files with 2 additions and 0 deletions
  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;
 			}
 		}