Project

General

Profile

Bug #3016

Updated by tuxillo about 2 years ago

<pre> 
 $ fgrep xname dragonfly/sbin/hammer2/cmd_snapshot.c 
	 char *xname; 
		 xname = strdup(""); 
			 asprintf(&xname, ".%s", strrchr(path, '/') + 1); 
			 asprintf(&xname, ".%s", path); 
			 xname = strdup(""); 
			  xname, 
 $ 

 </pre> 
 I don't see anywhere that xname is freed. Maybe this would be a good idea ? 

Back