diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-21 21:21:11 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-01-21 21:21:11 +0000 |
commit | 9626e6e8e7d33a53b58785233290f400b63e8825 (patch) | |
tree | 432d3e4dcf8bf13fcdb996448b73c88ef06ce706 /plugins/Variables/src/parse_system.cpp | |
parent | 8011e6b019517dbaea7cc31f856230957a1009cf (diff) |
Variables:
-Minor leaks fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11892 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/src/parse_system.cpp')
-rw-r--r-- | plugins/Variables/src/parse_system.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Variables/src/parse_system.cpp b/plugins/Variables/src/parse_system.cpp index 1c888e24f1..b17266b807 100644 --- a/plugins/Variables/src/parse_system.cpp +++ b/plugins/Variables/src/parse_system.cpp @@ -645,8 +645,10 @@ static TCHAR *parseTextFile(ARGUMENTSINFO *ai) }
bufSz = TXTFILEBUFSZ*csz;
pBuf = (PBYTE)mir_calloc(bufSz);
- if (pBuf == NULL)
+ if (pBuf == NULL) {
+ CloseHandle(hFile);
return NULL;
+ }
// count number of lines
do {
|