diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-08-19 19:53:47 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-08-19 19:53:47 +0000 |
| commit | 7a2bc23c5401fe689bab659b46dd6443f1f8a744 (patch) | |
| tree | b14ae0ca4a1bb065fb445660f8f594251b0794f7 /gui | |
| parent | da0bd5088116f8c984880cc6a15c83532f558753 (diff) | |
| download | pcsxr-7a2bc23c5401fe689bab659b46dd6443f1f8a744.tar.gz | |
Small fixes. 11833, 11834 (Lioncash);
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91261 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'gui')
| -rwxr-xr-x | gui/Config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/Config.c b/gui/Config.c index b09c0f2d..3c0aa923 100755 --- a/gui/Config.c +++ b/gui/Config.c @@ -103,7 +103,10 @@ int LoadConfig(PcsxConfig *Conf) { if (f == NULL) return -1; data = (char *)malloc(size + 1); - if (data == NULL) return -1; + if (data == NULL) { + fclose(f); + return -1; + } fread(data, 1, buf.st_size, f); fclose(f); |
