15 lines
448 B
Plaintext
15 lines
448 B
Plaintext
$OpenBSD: patch-src_rateup_c,v 1.1 2011/09/01 15:55:38 sthen Exp $
|
|
|
|
fix fd leak; from upstream repo
|
|
|
|
--- src/rateup.c.orig Thu Sep 1 16:46:56 2011
|
|
+++ src/rateup.c Thu Sep 1 16:48:31 2011
|
|
@@ -1792,6 +1792,7 @@ readparam (char const *file)
|
|
if (!(cbuf = fread (buff, 1, LENGTH_OF_BUFF, fp)))
|
|
{
|
|
fprintf (stderr, "%s, %s ERROR: Parameters file empty\n", bufftime, program);
|
|
+ fclose(fp);
|
|
return (1);
|
|
}
|
|
fclose (fp);
|