diff options
| author | Maxime Henrion <mux@FreeBSD.org> | 2002-04-17 13:06:36 +0000 |
|---|---|---|
| committer | Maxime Henrion <mux@FreeBSD.org> | 2002-04-17 13:06:36 +0000 |
| commit | d786139c76ad8d7cd25f962f7e67d4af98685418 (patch) | |
| tree | cb447f9f2a04a764ece9fcefc6fa6b52d19870b8 /sys/pc98 | |
| parent | fd448168b76dbe56823963e1d17872d0673e13ca (diff) | |
Notes
Diffstat (limited to 'sys/pc98')
| -rw-r--r-- | sys/pc98/i386/machdep.c | 3 | ||||
| -rw-r--r-- | sys/pc98/pc98/machdep.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 86ec0ef7f779a..5bb659b3f824a 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -1263,7 +1263,7 @@ getmemsize(int first) #endif vm_offset_t pa, physmap[PHYSMAP_SIZE]; pt_entry_t *pte; - const char *cp; + char *cp; #ifndef PC98 struct bios_smap *smap; #endif @@ -1514,6 +1514,7 @@ physmap_done: printf("Ignoring invalid memory size of '%s'\n", cp); else Maxmem = atop(AllowMem); + freeenv(cp); } if (atop(physmap[physmap_idx + 1]) != Maxmem && diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 86ec0ef7f779a..5bb659b3f824a 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -1263,7 +1263,7 @@ getmemsize(int first) #endif vm_offset_t pa, physmap[PHYSMAP_SIZE]; pt_entry_t *pte; - const char *cp; + char *cp; #ifndef PC98 struct bios_smap *smap; #endif @@ -1514,6 +1514,7 @@ physmap_done: printf("Ignoring invalid memory size of '%s'\n", cp); else Maxmem = atop(AllowMem); + freeenv(cp); } if (atop(physmap[physmap_idx + 1]) != Maxmem && |
