Resource Leak : Leak of memory or pointers to system resources
Resolved with free data pointers
Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
g_free (actual_val_char); \
} \
close (fd); \
+ free (data_buffer); \
\
/** delete device structure */ \
ASSERT_EQ (safe_remove (dev0->log_file), 0); \
g_free (actual_val_char);
}
close (fd);
+ free (data_buffer);
ASSERT_EQ (safe_remove (dev0->log_file), 0);
/** update data value to check data updates */
data_value += 1;
g_free (actual_val_char);
}
close (fd);
+ free (data_buffer);
ASSERT_EQ (safe_remove (dev0->log_file), 0);
/** update data value to check data updates */
data_value += 1;