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


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

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

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

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

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

crypto/ui/ui_lib.c:210:3: Condition is false
208.   	
209.   	return general_allocate_string(ui, prompt, 1,
210.   		echo_p?UI_VERIFY_ECHO:UI_VERIFY_NOECHO,
         ^
211.   		result_buf, minsize, maxsize, test_buf);
212.   	}
