acm: Return a valid buffer

This patch reverts a previous patch trying to fix a memory, even
though I don't think there was any. Now return a valid buffer. All
functions calling this function do free the buffer.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
Keir Fraser committed 2009-03-02 10:31:16 +00:00
1 parent 8bb7b3914b
commit 69e8ef7314
1 file changed
-2
-2
View File
@@ -68,8 +68,6 @@ static void *__getssid(int domid, uint32_t *buflen)
goto out2;
} else {
*buflen = SSID_BUFFER_SIZE;
free(buf);
buf = NULL;
goto out2;
}
out2:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.