On Tue, Apr 03, 2012 at 01:09:09AM +0200, Marc-André Lureau wrote:
> On Mon, Apr 2, 2012 at 1:23 PM, Daniel P. Berrange <[email protected]> 
> wrote:
> > From: "Daniel P. Berrange" <[email protected]>
> >
> > The red_worker_main method allocates a RedWorker struct instance
> > on the stack. This struct is a full 2 MB in size which is not
> > at all resonable to allocate on the stack.
> >
> 
> Ouch.. btw, apparently, it's the 10000 RedSurface that take most of
> this space (and I think it's worth further investigation)
> 
> I assumed you didn't forget the free() but found that the
> function/thread never returns. It's a bit choking though, it could be
> worth a comment in the code.

Yeah, can add a comment just before the abort()


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 :|
_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to