use g_path_get_dirname instead of dirname
commit55ad781ca7fcaed19e04554b558727206d638a99
authorWei Jiangang <weijg.fnst@cn.fujitsu.com>
Thu, 7 Apr 2016 02:46:24 +0000 (7 10:46 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 17 Jul 2016 07:59:21 +0000 (17 09:59 +0200)
tree3238b42fb35446849c71a6d5baafee314117a0f9
parent6b92bbfe812746fe7841a24c24e6460f5359ce72
use g_path_get_dirname instead of dirname

Use g_path_get_basename to get the directory components of
a file name, and free its return when no longer needed.

Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
Message-Id: <1459997185-15669-3-git-send-email-weijg.fnst@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
os-posix.c
util/oslib-posix.c