Fix double-free fault when isaconfig returns nothing for "etherN". (from richard millers devether-doublefree patch)
This commit is contained in:
parent
87785ee897
commit
b325475fc8
2 changed files with 2 additions and 2 deletions
|
@ -383,7 +383,7 @@ etherreset(void)
|
|||
continue;
|
||||
|
||||
if(isaconfig("ether", ctlrno, ether) == 0){
|
||||
free(ether);
|
||||
// free(ether);
|
||||
// return nil;
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -381,7 +381,7 @@ etherreset(void)
|
|||
continue;
|
||||
|
||||
if(isaconfig("ether", ctlrno, ether) == 0){
|
||||
free(ether);
|
||||
// free(ether);
|
||||
// return nil;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue