Ver código fonte

Another little touch up to avoid problems...

Eric Andersen 21 anos atrás
pai
commit
bc237c2584
1 arquivos alterados com 2 adições e 0 exclusões
  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;
 			}
 		}