crypto/ui/ui_lib.c:236: error: MEMORY_LEAK
  memory dynamically allocated by call to `strdup()` at line 228, column 13 is not reachable after line 236, column 33.
Showing all 6 steps of the trace


crypto/ui/ui_lib.c:222:1: start of procedure UI_dup_info_string()
220.   	}
221.   
222. > int UI_dup_info_string(UI *ui, const char *text)
223.   	{
224.   	char *text_copy=NULL;

crypto/ui/ui_lib.c:224:2: 
222.   int UI_dup_info_string(UI *ui, const char *text)
223.   	{
224. > 	char *text_copy=NULL;
225.   
226.   	if (text)

crypto/ui/ui_lib.c:226:6: Taking true branch
224.   	char *text_copy=NULL;
225.   
226.   	if (text)
            ^
227.   		{
228.   		text_copy=strdup(text);

crypto/ui/ui_lib.c:228:3: 
226.   	if (text)
227.   		{
228. > 		text_copy=strdup(text);
229.   		if (text_copy == NULL)
230.   			{

crypto/ui/ui_lib.c:229:7: Taking false branch
227.   		{
228.   		text_copy=strdup(text);
229.   		if (text_copy == NULL)
             ^
230.   			{
231.   			UIerr(UI_F_UI_DUP_INFO_STRING,ERR_R_MALLOC_FAILURE);

crypto/ui/ui_lib.c:236:2: 
234.   		}
235.   
236. > 	return general_allocate_string(ui, text, 1, UI_INFO, NULL, 0, 0, NULL);
237.   	}
238.   
