diff options
Diffstat (limited to 'tools/sockprox.c')
-rw-r--r-- | tools/sockprox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/sockprox.c b/tools/sockprox.c index 9ec89ce25..35935987a 100644 --- a/tools/sockprox.c +++ b/tools/sockprox.c @@ -443,7 +443,8 @@ run_proxy (void) out: pthread_attr_destroy (&thread_attr); - fclose (protocol_file); /* FIXME, err checking. */ + if (protocol_file) + fclose (protocol_file); /* FIXME, err checking. */ return err; } |