... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Fri Dec 17 14:21:21 CET 2010 (acab) |
|
2 |
+----------------------------------- |
|
3 |
+ * clamav-milter/whitelist.c, clamscan/manager.c, libclamav/sis.c: |
|
4 |
+ error path leaks and similar - thanks Michael Tautschnig <mt*debian.org> |
|
5 |
+ |
|
1 | 6 |
Thu Dec 16 15:31:38 CET 2010 (acab) |
2 | 7 |
--------------------------------- |
3 | 8 |
* clamav-milter: handle EINTR during waitpid() |
... | ... |
@@ -90,6 +90,7 @@ int whitelist_init(const char *fname) { |
90 | 90 |
if (!(w = (struct WHLST *)malloc(sizeof(*w)))) { |
91 | 91 |
logg("!Out of memory loading whitelist file\n"); |
92 | 92 |
whitelist_free(); |
93 |
+ fclose(f); |
|
93 | 94 |
return 1; |
94 | 95 |
} |
95 | 96 |
w->next = (*addto); |
... | ... |
@@ -97,9 +98,11 @@ int whitelist_init(const char *fname) { |
97 | 97 |
if (cli_regcomp(&w->preg, ptr, REG_ICASE|REG_NOSUB)) { |
98 | 98 |
logg("!Failed to compile regex '%s' in whitelist file\n", ptr); |
99 | 99 |
whitelist_free(); |
100 |
+ fclose(f); |
|
100 | 101 |
return 1; |
101 | 102 |
} |
102 | 103 |
} |
104 |
+ fclose(f); |
|
103 | 105 |
return 0; |
104 | 106 |
} |
105 | 107 |
|