uniq: plug memory leak (patch from OpenWRT project)

function                                             old     new   delta
uniq_main                                            371     389     +18

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-08-30 19:34:09 +02:00
parent 0aec9ff6b8
commit a9c9bf5055
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ int uniq_main(int argc UNUSED_PARAM, char **argv)
break;
}
free(cur_line);
++dups; /* testing for overflow seems excessive */
}