mirror of
https://github.com/sheumann/hush.git
synced 2024-06-13 18:29:34 +00:00
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:
parent
0aec9ff6b8
commit
a9c9bf5055
|
@ -89,6 +89,7 @@ int uniq_main(int argc UNUSED_PARAM, char **argv)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(cur_line);
|
||||||
++dups; /* testing for overflow seems excessive */
|
++dups; /* testing for overflow seems excessive */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user