From 18790e36406a7e9411b459c92032c41cf5faa295 Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Fri, 10 Oct 2008 16:24:00 +0000 Subject: get_assoc(): file handle of fopen(PROC_AX25_CALLS_FILE, "r") was never closed. --- ax25/axspawn.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ax25') diff --git a/ax25/axspawn.c b/ax25/axspawn.c index 2b3615d..af5230d 100644 --- a/ax25/axspawn.c +++ b/ax25/axspawn.c @@ -1,6 +1,6 @@ /* * - * $Id: axspawn.c,v 1.16 2008/04/13 23:39:52 dl9sau Exp $ + * $Id: axspawn.c,v 1.17 2008/10/10 16:24:00 dl9sau Exp $ * * axspawn.c - run a program from ax25d. * @@ -982,9 +982,11 @@ int get_assoc(struct sockaddr_ax25 *sax25) if (sax25->sax25_uid == uid) { ax25_aton_entry(buf, (char *) &sax25->sax25_call); + fclose(fp); return 0; } } + fclose(fp); return -1; } -- cgit v1.2.3