Mahmoud Mandour e0c5a18efc util/compatfd.c: Replaced a malloc call with g_malloc.
Replaced a call to malloc() and its respective call to free()
with g_malloc() and g_free().

g_malloc() is preferred more than g_try_* functions, which
return NULL on error, when the size of the requested
allocation  is small. This is because allocating few
bytes should not be a problem in a healthy system.
Otherwise, the system is already in a critical state.

Subsequently, removed NULL-checking after g_malloc().

Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
Message-Id: <20210315105814.5188-3-ma.mandourr@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2021-05-14 12:28:01 +02:00
..
2020-01-06 18:41:32 +04:00
2021-05-11 04:11:14 -04:00
2019-09-11 08:46:17 +02:00
2021-04-30 12:27:47 +02:00
2021-05-10 13:55:28 +02:00
2020-12-10 17:16:44 +01:00
2020-09-22 15:42:23 +01:00
2021-05-06 18:56:17 +01:00
2018-12-20 10:29:08 +01:00
2021-04-30 12:27:47 +02:00
2018-08-24 20:26:37 +02:00
2018-06-29 12:32:10 +02:00
2020-11-23 13:03:13 +00:00
2021-04-01 15:27:44 +04:00