summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriadna Vigo <arivigodr@gmail.com>2020-12-24 22:48:25 +0100
committerAriadna Vigo <arivigodr@gmail.com>2020-12-24 22:48:25 +0100
commit6dcfecf4d72b130f4deb46dc1ad99901d18da68a (patch)
tree02842eeee72a40c90c627bbbf45657a1cd272144
parentf6fb44eac7451258651963559c2f957323e5823d (diff)
Memory management bug fixedHEADmaster
-rw-r--r--cras.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cras.c b/cras.c
index cf6931b..5ecbf48 100644
--- a/cras.c
+++ b/cras.c
@@ -125,10 +125,8 @@ read_crasfile(TaskLst *list, const char *crasfile)
FILE *fp;
fp = fopen(crasfile, "r");
- if (fp == NULL) {
- task_lst_cleanup(list);
+ if (fp == NULL)
die("Could not read from %s: %s", crasfile, strerror(errno));
- }
read_stat = task_lst_read_from_file(list, fp);
fclose(fp);