aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--version_info.c4
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);