X-Git-Url: http://git.openwrt.org/?p=project%2Fubox.git;a=blobdiff_plain;f=block.c;h=2289b779a7a485642789cfc303091ee19a0f4b7a;hp=c9285d642ad8346bbb10dede5c9df2af99828ded;hb=a9cb25c5c2b9d864f77033533fab9f2f8a6f94ab;hpb=1f548a358650a628c24d3f5ccfca1828a8cce4ad diff --git a/block.c b/block.c index c9285d6..2289b77 100644 --- a/block.c +++ b/block.c @@ -545,8 +545,10 @@ static char* find_mount_point(char *block) char *p = &line[len + 1]; char *t = strstr(p, " "); - if (!t) + if (!t) { + fclose(fp); return NULL; + } *t = '\0'; point = p; break;