1. James Sumners
  2. JBSCrypto

Commits

James Sumners  committed a3a147a Draft

Fixed two memory leaks.

  • Participants
  • Parent commits 6e0c592
  • Branches default

Comments (0)

Files changed (1)

File JBSCrypto/JBSCrypto.m

View file
  • Ignore whitespace
     returnData = [NSData dataWithBytes:buffer length:bytesDecrypted];
   }
   
+  free(buffer);
   return returnData;
 }
 
     returnData = [NSData dataWithBytes:buffer length:bytesEncrypted];
   }
   
+  free(buffer);
   return returnData;
 }