]> Git Repo - qemu.git/commit
util/path: Use the GLib memory allocation routines
authorzhanghailiang <[email protected]>
Mon, 18 Aug 2014 07:49:22 +0000 (15:49 +0800)
committerMichael Tokarev <[email protected]>
Sun, 24 Aug 2014 09:16:32 +0000 (13:16 +0400)
commitbc5008a832f95aae86efce844382e64d54da2146
tree2c5677d36417aee291091dd0dad60fb1eeb4f1e6
parent33886ebeec0c0ff6253a49253fae0db44c9ed0f3
util/path: Use the GLib memory allocation routines

In this file, we don't check the return value of malloc/strdup/realloc which may fail.
Instead of using these routines, we use the GLib memory APIs g_malloc/g_strdup/g_realloc.
They will exit on allocation failure, so there is no need to test for failure,
which would be fine for setup.

Signed-off-by: zhanghailiang <[email protected]>
Reviewed-by: Alex BennĂ©e <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
util/path.c
This page took 0.025359 seconds and 4 git commands to generate.