summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-01-12 08:03:49 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-01-12 08:03:49 +0100
commit0f90e6314a1beafb25721d56f13d3bfa3a00392c (patch)
tree09f2d7705831f264aaf6e1162ae7cec9b9e339f9 /plugins
parentee4007a7d15fb149b755accd09a04c6dc16d1483 (diff)
oops, accidentally re-introduced the memory leak
Diffstat (limited to 'plugins')
-rw-r--r--plugins/upd/upd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index 0c1cc1e7..2d5c3a4b 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -56,14 +56,12 @@ check_version ()
 			}
 			buffer[dwRead] = 0;
 		}
-		
-		return buffer;
 
 		InternetCloseHandle (hFile);
+		return buffer;
 	}
 	
 	InternetCloseHandle (hINet);
-
 	return "Unknown";
 }