Skip to content

Commit 2a59380

Browse files
authored
v.external.out: Resource leak in list.c (OSGeo#6326)
1 parent c48793d commit 2a59380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vector/v.external.out/list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ char *format_options(void)
7575
ret = NULL;
7676
list = format_list(&count, &len);
7777

78-
if (list && len > 0) {
78+
if (list) {
7979
ret = G_malloc((len + 1) * sizeof(char)); /* \0 */
8080
*ret = '\0';
8181
for (i = 0; i < count; i++) {

0 commit comments

Comments
 (0)