]> rtime.felk.cvut.cz Git - linux-imx.git/blobdiff - fs/cifs/cifs_dfs_ref.c
fs/cifs/cifs_dfs_ref.c: fix potential memory leakage
[linux-imx.git] / fs / cifs / cifs_dfs_ref.c
index ce5cbd717bfc54be99e746089efe1fd17a8d593c..210fce2df3087a3738291f714e9ac99c18f390f8 100644 (file)
@@ -226,6 +226,8 @@ compose_mount_options_out:
 compose_mount_options_err:
        kfree(mountdata);
        mountdata = ERR_PTR(rc);
+       kfree(*devname);
+       *devname = NULL;
        goto compose_mount_options_out;
 }