[libvirt] [PATCH 13/20] openvz: Remove several larger stack allocations
Daniel P. Berrange
berrange at redhat.com
Mon Apr 4 10:37:20 UTC 2011
On Sun, Apr 03, 2011 at 11:21:26AM +0200, Matthias Bolte wrote:
> Replace openvz_readline with getline in several places to get rid of stack
> allocated buffers to hold lines.
>
> openvzReadConfigParam allocates memory for return values instead of
> expecting a preexisting buffer.
> ---
> src/openvz/openvz_conf.c | 141 +++++++++++++++++++++++++++-----------------
> src/openvz/openvz_conf.h | 2 +-
> src/openvz/openvz_driver.c | 45 +++++++++-----
> 3 files changed, 117 insertions(+), 71 deletions(-)
ACK
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list