libfuse: Assign NULL to "old" to avoid free it twice (#522)
authorwinndows <winndows@163.com>
Wed, 1 Jul 2020 05:20:01 +0000 (13:20 +0800)
committerGitHub <noreply@github.com>
Wed, 1 Jul 2020 05:20:01 +0000 (06:20 +0100)
commit06342ca60ed822b856990915f127d8beddc0d1f6
tree135c34731fedc69d45595ef155681d5ea69e8ee2
parent5021d6a0a100d4987be126e87b7ee5fbfc17bbdc
libfuse: Assign NULL to "old" to avoid free it twice (#522)

Assign NULL to "old" at the first free(), to avoid the possible 2nd free() for it.

Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Co-authored-by: Liao Pingfang <liao.pingfang@zte.com.cn>
lib/modules/iconv.c