diff options
| author | Pyun YongHyeon <yongari@FreeBSD.org> | 2004-12-22 08:17:18 +0000 |
|---|---|---|
| committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2004-12-22 08:17:18 +0000 |
| commit | 2d25239038e420896c05606a9f872d1726cfc355 (patch) | |
| tree | a1f91ea27da3fd0b3a5516789403c0b407d713be /lib/libdisk | |
| parent | 3276f95241532506f7cfbfdb81a765c982da5594 (diff) | |
Notes
Diffstat (limited to 'lib/libdisk')
| -rw-r--r-- | lib/libdisk/disk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index 8e391e307474..7381457adbac 100644 --- a/lib/libdisk/disk.c +++ b/lib/libdisk/disk.c @@ -77,6 +77,7 @@ chunk_name(chunk_e type) struct disk * Open_Disk(const char *name) { + struct disk *d; char *conftxt; size_t txtsize; int error; @@ -98,8 +99,10 @@ Open_Disk(const char *name) return (NULL); } conftxt[txtsize] = '\0'; /* in case kernel bug is still there */ + d = Int_Open_Disk(name, conftxt); + free(conftxt); - return Int_Open_Disk(name, conftxt); + return (d); } void |
