diff options
Diffstat (limited to 'sbin/kldconfig/kldconfig.c')
-rw-r--r-- | sbin/kldconfig/kldconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/kldconfig/kldconfig.c b/sbin/kldconfig/kldconfig.c index bd4015d..21f4d1c 100644 --- a/sbin/kldconfig/kldconfig.c +++ b/sbin/kldconfig/kldconfig.c @@ -142,7 +142,7 @@ setpath(struct pathhead *pathq) if (sysctl(mib, miblen, NULL, NULL, newpath, strlen(newpath)+1) == -1) err(1, "setting path: sysctl(%s)", pathctl); - if (modpath) + if (modpath != NULL) free(modpath); modpath = newpath; } |