diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2013-06-17 07:20:54 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2013-06-17 07:20:54 +0000 |
commit | 114657b0cb4d2f940dd770a60d2a1071dae2f1b3 (patch) | |
tree | f0f29808d222dd2a321ce31c54a20db56391722c /version_info.c | |
parent | 632082e57dba849dcc2f5e2b75fbb305b62c6059 (diff) |
Added a missing CFRelease.
svn path=/trunk/; revision=49976
Diffstat (limited to 'version_info.c')
-rw-r--r-- | version_info.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/version_info.c b/version_info.c index 9743ff1ae3..2747515ad1 100644 --- a/version_info.c +++ b/version_info.c @@ -272,8 +272,10 @@ get_os_x_version_info(GString *str) version_plist_stream, 0, kCFPropertyListImmutable, NULL, NULL); #endif - if (version_dict == NULL) + if (version_dict == NULL) { + CFRelease(version_plist_stream); return FALSE; + } if (CFGetTypeID(version_dict) != CFDictionaryGetTypeID()) { /* This is *supposed* to be a dictionary. Punt. */ CFRelease(version_dict); |