summaryrefslogtreecommitdiffstats
path: root/src/h.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/h.c')
-rw-r--r--src/h.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/h.c b/src/h.c
index 5774cf2..3e47408 100644
--- a/src/h.c
+++ b/src/h.c
@@ -323,6 +323,7 @@ struct dc_user {
unsigned long long int id;
short int discriminator;
enum dc_status status;
+ char * path; /* yesfree, internal, so parser knows what object this user is from */
};
struct dc_user * dc_user_init () {
struct dc_user * s = calloc(1, sizeof(*s));
@@ -332,6 +333,7 @@ void dc_user_free (struct dc_user * s) {
if (!s)
return;
free(s->username);
+ free(s->path);
free(s);
}
struct dc_permission { /* permissions can be individual on a per-channel basis */