Skip to content

Commit

Permalink
fix double free in WalletManager_findWallets
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Sep 3, 2024
1 parent 811ade0 commit e94fece
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion impls/monero.dart/lib/monero.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3594,7 +3594,6 @@ String WalletManager_findWallets(WalletManager wm_ptr, {required String path}) {
.MONERO_WalletManager_findWallets(wm_ptr, path_, defaultSeparator)
.cast<Utf8>();
final str = strPtr.toDartString();
calloc.free(path_);
MONERO_free(strPtr.cast());
debugEnd?.call('MONERO_WalletManager_findWallets');
return str;
Expand Down
1 change: 0 additions & 1 deletion impls/monero.dart/lib/wownero.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3229,7 +3229,6 @@ String WalletManager_findWallets(WalletManager wm_ptr, {required String path}) {
.WOWNERO_WalletManager_findWallets(wm_ptr, path_, defaultSeparator)
.cast<Utf8>();
final str = strPtr.toDartString();
calloc.free(path_);
WOWNERO_free(strPtr.cast());
debugEnd?.call('WOWNERO_WalletManager_findWallets');
return str;
Expand Down

0 comments on commit e94fece

Please sign in to comment.