Ignore:
Timestamp:
2012-05-05T08:12:17Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ee04c28
Parents:
2cc7f16 (diff), d21e935c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/infrastructure/root/root.c

    r2cc7f16 rc6588ce  
    5353#include <ddf/driver.h>
    5454#include <ddf/log.h>
    55 #include <devman.h>
    56 #include <ipc/devman.h>
    5755
    5856#define NAME "root"
     
    158156        if (asprintf(&match_id, PLATFORM_FUN_MATCH_ID_FMT, platform) == -1) {
    159157                ddf_msg(LVL_ERROR, "Memory allocation failed.");
    160                 return ENOMEM;
    161         }
     158                free(platform);
     159                return ENOMEM;
     160        }
     161
     162        free(platform);
    162163
    163164        /* Add function. */
     
    169170        if (fun == NULL) {
    170171                ddf_msg(LVL_ERROR, "Error creating function %s", name);
     172                free(match_id);
    171173                return ENOMEM;
    172174        }
     
    176178                ddf_msg(LVL_ERROR, "Failed adding match IDs to function %s",
    177179                    name);
     180                free(match_id);
    178181                ddf_fun_destroy(fun);
    179182                return rc;
     
    208211         * vital for the system.
    209212         */
    210         add_virtual_root_fun(dev);
     213        (void) add_virtual_root_fun(dev);
    211214
    212215        /* Register root device's children. */
Note: See TracChangeset for help on using the changeset viewer.