com_sa: pedantic mem leak fix.
authorAndre <maan@p133.(none)>
Fri, 14 Apr 2006 13:31:48 +0000 (15:31 +0200)
committerAndre <maan@p133.(none)>
Fri, 14 Apr 2006 13:31:48 +0000 (15:31 +0200)
In fact, this memory leak doesn't matter much because it happens in the child
which calls exit shortly afterwards. But it's considered good programming
practice to free all memory, so..

mysql_selector.c

index f41afcd..82f197c 100644 (file)
@@ -2210,6 +2210,7 @@ no_more_atts:
        }
        refresh_selector_info();
 out:
        }
        refresh_selector_info();
 out:
+       free(atts);
        return ret;
 }
 
        return ret;
 }