From: sin Date: Tue, 21 Oct 2014 14:17:44 +0000 (+0100) Subject: No need to strdup() X-Git-Tag: v1.0~92^2~200 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=330adc995f4528a29626b34da0a3d885b98139f7;p=nnn.git No need to strdup() --- diff --git a/noice.c b/noice.c index ba2774ae..ee70d582 100644 --- a/noice.c +++ b/noice.c @@ -622,7 +622,7 @@ nochange: goto nochange; } else { free(path); - path = strdup(tmp); + path = tmp; free(filter); filter = strdup(ifilter); /* Reset filter */ DPRINTF_S(path);