Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9c3bba0 in mainline


Ignore:
Timestamp:
2011-12-10T23:10:41Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
0d29e0cd, 899f1a9, cf155ed, d9f8dd13
Parents:
4a4cc150
Message:

Free allocated file name buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/websrv/websrv.c

    r4a4cc150 r9c3bba0  
    3939#include <sys/types.h>
    4040#include <sys/stat.h>
     41#include <stdlib.h>
    4142#include <fcntl.h>
    4243
     
    171172        if (fd < 0) {
    172173                printf("File '%s' not found.\n", fname);
     174                free(fname);
    173175                return ENOENT;
    174176        }
     177
     178        free(fname);
    175179
    176180        rc = send_response(conn_sd, ok_msg);
Note: See TracChangeset for help on using the changeset viewer.