Commit 7ae72c65 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

lib: don't use uninitialized value "m"

*** CID 150397:  Memory - illegal accesses  (UNINIT)
/lib/criu.c: 696 in criu_local_add_irmap_path()
690
691             return 0;
692
693     err:
694             if (my_path)
695                     free(my_path);
>>> >>>     CID 150397:  Memory - illegal accesses  (UNINIT)
>>> >>>     Using uninitialized value "m".
696             if (m)
697                     free(m);
698
699             return -ENOMEM;
700     }
701
Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent aab2d1e8
......@@ -697,8 +697,6 @@ int criu_local_add_irmap_path(criu_opts *opts, char *path)
err:
if (my_path)
free(my_path);
if (m)
free(m);
return -ENOMEM;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment