Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed double free

  • Loading branch information...
commit f044cfad9427e8c668e28d78b12450e379cb60ff 1 parent fdd0e00
@meebey authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.