aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Larimer <dlarimer@gmail.com>2013-05-19 12:45:52 -0400
committerDaniel Larimer <dlarimer@gmail.com>2013-05-19 15:08:33 -0400
commit173601705ccf189fd83e3854f71f6a872c6faeda (patch)
tree1ba6f7b5b625a2f600513d2c0ccfef91f06caa99 /src
parent5b5d399593adbdf8b9b4fb49ef39d51d4eac03cd (diff)
fix memory leak in CKey::SetCompactSignature()
Diffstat (limited to 'src')
-rw-r--r--src/key.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/key.cpp b/src/key.cpp
index 20114e6bb2..74b2797d83 100644
--- a/src/key.cpp
+++ b/src/key.cpp
@@ -367,6 +367,7 @@ bool CKey::SetCompactSignature(uint256 hash, const std::vector<unsigned char>& v
ECDSA_SIG_free(sig);
return true;
}
+ ECDSA_SIG_free(sig);
return false;
}