Skip to content

Commit 5484048

Browse files
committed
add gretl_list_free() for use by gretl4py
1 parent be3275b commit 5484048

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

lib/src/gretl_list.c

+7
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ int *gretl_list_new (int nterms)
171171
return list;
172172
}
173173

174+
/* experimental wrapper for use with gretl4py */
175+
176+
void gretl_list_free (int *list)
177+
{
178+
free(list);
179+
}
180+
174181
/**
175182
* gretl_list_array_new:
176183
* @nlists: the number of lists to create.

lib/src/gretl_list.h

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
int *gretl_list_new (int nterms);
2626

27+
void gretl_list_free (int *list);
28+
2729
int *gretl_list_resize (int **oldlist, int nterms);
2830

2931
int *gretl_list_append_term (int **plist, int v);

0 commit comments

Comments
 (0)