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


crypto/ui/ui_lib.c:195:1: start of procedure UI_dup_verify_string()
193.   	}
194.   
195. > int UI_dup_verify_string(UI *ui, const char *prompt, int flags,
196.   	char *result_buf, int minsize, int maxsize, const char *test_buf)
197.   	{

crypto/ui/ui_lib.c:198:2: 
196.   	char *result_buf, int minsize, int maxsize, const char *test_buf)
197.   	{
198. > 	char *prompt_copy=NULL;
199.   
200.   	if (prompt)

crypto/ui/ui_lib.c:200:6: Taking true branch
198.   	char *prompt_copy=NULL;
199.   
200.   	if (prompt)
            ^
201.   		{
202.   		prompt_copy=strdup(prompt);

crypto/ui/ui_lib.c:202:3: 
200.   	if (prompt)
201.   		{
202. > 		prompt_copy=strdup(prompt);
203.   		if (prompt_copy == NULL)
204.   			{

crypto/ui/ui_lib.c:203:7: Taking false branch
201.   		{
202.   		prompt_copy=strdup(prompt);
203.   		if (prompt_copy == NULL)
             ^
204.   			{
205.   			UIerr(UI_F_UI_DUP_VERIFY_STRING,ERR_R_MALLOC_FAILURE);

crypto/ui/ui_lib.c:210:2: 
208.   		}
209.   	
210. > 	return general_allocate_string(ui, prompt, 1,
211.   		UIT_VERIFY, flags, result_buf, minsize, maxsize, test_buf);
212.   	}
