Free the memory allocated via strdup.
PR: bin/113881 Submitted by: Alexander Drozdov dzal_mail mtu-net.ru Approved by: rrs (mentor) MFC after: 1 week
This commit is contained in:
parent
338f1debcd
commit
f2359a2473
@ -382,6 +382,7 @@ S_timeval(int l2, void *p)
|
||||
if (*p2 == '\n')
|
||||
*p2 = '\0';
|
||||
fputs(p1, stdout);
|
||||
free(p1);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user