nit: alignment:
```
error:
    free(line);
    return;
```