Changeset d6c4d40 in mainline for uspace/lib/congfx/src/console.c
- Timestamp:
- 2021-03-05T11:23:31Z (3 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f73a8e3
- Parents:
- 87822ce
- git-author:
- Jiri Svoboda <jiri@…> (2021-03-04 20:22:52)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-03-05 11:23:31)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/congfx/src/console.c
r87822ce rd6c4d40 137 137 sysarg_t rows; 138 138 sysarg_t cols; 139 charfield_t *buf ;139 charfield_t *buf = NULL; 140 140 errno_t rc; 141 141 … … 149 149 if (rc != EOK) 150 150 goto error; 151 152 console_clear(con); 151 153 152 154 rc = console_map(con, cols, rows, &buf); … … 170 172 return EOK; 171 173 error: 174 if (buf != NULL) 175 console_unmap(cgc->con, buf); 172 176 if (cgc != NULL) 173 177 free(cgc); … … 187 191 if (rc != EOK) 188 192 return rc; 193 194 console_clear(cgc->con); 195 console_unmap(cgc->con, cgc->buf); 189 196 190 197 free(cgc);
Note:
See TracChangeset
for help on using the changeset viewer.