aboutsummaryrefslogtreecommitdiff
path: root/hw/gpio/pca9554.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gpio/pca9554.c')
-rw-r--r--hw/gpio/pca9554.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/gpio/pca9554.c b/hw/gpio/pca9554.c
index de3f883..eac0d23 100644
--- a/hw/gpio/pca9554.c
+++ b/hw/gpio/pca9554.c
@@ -174,7 +174,7 @@ static void pca9554_set_pin(Object *obj, Visitor *v, const char *name,
PCA9554State *s = PCA9554(obj);
int pin, rc, val;
uint8_t state, mask;
- char *state_str;
+ g_autofree char *state_str = NULL;
if (!visit_type_str(v, name, &state_str, errp)) {
return;