aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPDataAdditions.m1
-rw-r--r--Source/SPStringAdditions.m6
2 files changed, 6 insertions, 1 deletions
diff --git a/Source/SPDataAdditions.m b/Source/SPDataAdditions.m
index 02a2f190..80ca72a1 100644
--- a/Source/SPDataAdditions.m
+++ b/Source/SPDataAdditions.m
@@ -106,6 +106,7 @@
*((UInt32*)decryptedBytes + ((encryptedLength / 4) - 3)) ||
*((UInt32*)decryptedBytes + ((encryptedLength / 4) - 2)) )
{
+ free(decryptedBytes);
return nil;
}
diff --git a/Source/SPStringAdditions.m b/Source/SPStringAdditions.m
index 29c0b43f..29b4144d 100644
--- a/Source/SPStringAdditions.m
+++ b/Source/SPStringAdditions.m
@@ -202,7 +202,11 @@
}
}
- return [NSString stringWithString:holder];
+ NSString *result = [NSString stringWithString:holder];
+
+ [holder release];
+
+ return result;
}
/**