Fix memory leak detected by static analysis tool
[platform/core/uifw/tts.git] / common / tts_config_mgr.c
index 7681be1..41f8261 100644 (file)
@@ -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;
        }