use correct order for free()ing resources (Andre Guibert de Bruet)

This commit is contained in:
marschap
2008-12-14 16:14:29 +00:00
parent 99928e7303
commit 30f16bcdaa
+1 -1
View File
@@ -94,8 +94,8 @@ screen_create(char *id, Client *client)
s->widgetlist = LL_new();
if (s->widgetlist == NULL) {
report(RPT_ERR, "%s: Error allocating", __FUNCTION__);
free(s);
free(s->id);
free(s);
return NULL;
}