From: greatim Date: Fri, 2 Dec 2016 00:30:15 +0000 (+0900) Subject: fix a bug (free the static buffer) X-Git-Tag: accepted/tizen/3.0/common/20161206.125549~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F46%2F101646%2F1;p=sdk%2Ftarget%2Fsdbd.git fix a bug (free the static buffer) fix a bug (free the static buffer) Change-Id: If31caa5c8ff36ae7658bb33daa1df07e20f053be Signed-off-by: greatim --- diff --git a/src/plugin_encrypt.c b/src/plugin_encrypt.c index e8a96a3..51df016 100644 --- a/src/plugin_encrypt.c +++ b/src/plugin_encrypt.c @@ -200,6 +200,8 @@ int security_encrypt(const int nSessionID, apacket* pApacket) release_parameters ( &out ); } + // avoid to free + in.array_of_parameter[1].v_chunk.data = NULL; release_parameters ( &in ); return success; } @@ -228,6 +230,8 @@ int security_decrypt(const int nSessionID, apacket* pApacket) release_parameters ( &out ); } + // avoid to free + in.array_of_parameter[1].v_chunk.data = NULL; release_parameters ( &in ); return success; }