Browse files

Fixed double free

  • Loading branch information...
1 parent fdd0e00 commit f044cfad9427e8c668e28d78b12450e379cb60ff @meebey committed Mar 12, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 Native.cs
View
2 Native.cs
@@ -323,7 +323,6 @@ public static string leveldb_iter_key(IntPtr iter)
return null;
}
var key = Marshal.PtrToStringAnsi(keyPtr, (int) keyLength);
- Marshal.FreeHGlobal(keyPtr);
return key;
}
@@ -338,7 +337,6 @@ public static string leveldb_iter_value(IntPtr iter)
return null;
}
var value = Marshal.PtrToStringAnsi(valuePtr, (int) valueLength);
- Marshal.FreeHGlobal(valuePtr);
return value;
}

0 comments on commit f044cfa

Please sign in to comment.