Fix issue detected by static analysis tool
[platform/core/uifw/inputdelegator.git] / src / voice-recorder.cpp
index 9c6a880..98b8a05 100644 (file)
@@ -161,6 +161,7 @@ static void _recorder_start(voice_recorder *recorder)
        snprintf(recorder->file_path, PATH_MAX, "%s/%s", voice_content_path, filename);
        LOGD("recorder->file_path = %s", recorder->file_path);
        _recorder_apply_settings(recorder);
+       free(voice_content_path);
        recorder_prepare(recorder->recorder);
        recorder_start(recorder->recorder);
 }