From: wn.jang Date: Tue, 21 Mar 2023 00:49:09 +0000 (+0900) Subject: Fix memory leak detected by static analysis tool X-Git-Tag: accepted/tizen/unified/20230321.123228~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21ffb71277fd590684bf74027093fa65648f42aa;p=platform%2Fcore%2Fuifw%2Ftts.git Fix memory leak detected by static analysis tool Change-Id: I332780d46eb2d8ad297a0526a87eac1ae06afdad --- diff --git a/common/tts_config_mgr.c b/common/tts_config_mgr.c index 7681be16..41f8261e 100644 --- a/common/tts_config_mgr.c +++ b/common/tts_config_mgr.c @@ -589,7 +589,7 @@ static void invoke_pitch_changed_event(int pitch) delete_pitch_changed_event_invoker(); int *params = (int *)calloc(1, sizeof(int)); - if (NULL != params) { + if (NULL == params) { SLOG(LOG_ERROR, TAG_TTSCONFIG, "[ERROR] Fail to allocate the memory for parameter"); return; }