Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jason authored and nosracd committed Jul 19, 2024
1 parent 64e149f commit b09ec48
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lcmgen/emit_go.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ static char *go_typename(const char *const package, const char *const typepackag
g_string_append_printf(name, "_%" PRIu64, (uint64_t) fingerprint);
}

char *ret = name->str;
g_string_free(name, FALSE);
return ret;
return g_string_free(name, FALSE);
}

/*
Expand Down

0 comments on commit b09ec48

Please sign in to comment.