API: Bugfix: Remove memory leak from buffer_get_line

This commit is contained in:
Thiago de Arruda 2014-05-26 13:39:25 -03:00
parent 327347e3b4
commit cbf9564ee0

View File

@ -60,6 +60,8 @@ String buffer_get_line(Buffer buffer, Integer index, Error *err)
rv = slice.items[0];
}
free(slice.items);
return rv;
}