From 75012d59c214aa9197060033746b0e3dd1439f4a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 31 Mar 2009 22:23:43 +0000 Subject: Close .tmux.conf... DOH. --- cfg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cfg.c') diff --git a/cfg.c b/cfg.c index 7e38a0a6..2a45c393 100644 --- a/cfg.c +++ b/cfg.c @@ -1,4 +1,4 @@ -/* $Id: cfg.c,v 1.14 2009-01-18 14:40:48 nicm Exp $ */ +/* $Id: cfg.c,v 1.15 2009-03-31 22:23:43 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -107,10 +107,13 @@ load_cfg(const char *path, char **cause) } if (line != NULL) xfree(line); + fclose(f); return (0); error: + fclose(f); + xasprintf(&ptr, "%s: %s at line %u", path, *cause, n); xfree(*cause); *cause = ptr; -- cgit v1.2.3