Permalink
Browse files

fixed memory leak due to cut-and-paste error

  • Loading branch information...
1 parent bc7a83e commit 1c9e8c3a6838d846138116a0c99444dbb9876a9b Nate Wiger committed Mar 17, 2010
Showing with 0 additions and 1 deletion.
  1. +0 −1 ext/fast_aes.c
View
@@ -200,7 +200,6 @@ VALUE fast_aes_decrypt(
char* pDataIn = StringValuePtr(buffer);
int uiNumBytesIn = RSTRING_LEN(buffer);
char* pDataOut = malloc((uiNumBytesIn + 15) & -16); /* auto-malloc min size in 16-byte increments */
- pDataOut = malloc(uiNumBytesIn + 15);
unsigned char *pRead, *pWrite;
pRead = (unsigned char*)pDataIn;

0 comments on commit 1c9e8c3

Please sign in to comment.