From 49c0c23d9d90041caab41ca5ea84ac2e014c2ed8 Mon Sep 17 00:00:00 2001 From: John Keeping Date: Mon, 25 May 2009 12:24:46 +0100 Subject: [PATCH] hwclock: fix mismatched popen/fclose. date_child_fp is opened by popen, so should be closed with pclose. Signed-off-by: John Keeping Reviewed-by: WANG Cong --- hwclock/hwclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c index 11c606dd..571d63fb 100644 --- a/hwclock/hwclock.c +++ b/hwclock/hwclock.c @@ -676,7 +676,7 @@ interpret_date_string(const char *date_opt, time_t * const time_p) { date_opt, (long) *time_p); } } - fclose(date_child_fp); + pclose(date_child_fp); return retcode; } -- 2.39.5